about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/setitimer.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-04-04 21:53:15 +0000
committerRoland McGrath <roland@gnu.org>1995-04-04 21:53:15 +0000
commit45b28a8f0b36a48ab37ca973c2a93d8c43120488 (patch)
treeeabe23f97b1290bd67f3b6741ff7207eea3ae627 /sysdeps/mach/hurd/setitimer.c
parentc4bf5a3e9a6bddb74d649a7d687111f7c2df04e1 (diff)
downloadglibc-45b28a8f0b36a48ab37ca973c2a93d8c43120488.tar.gz
glibc-45b28a8f0b36a48ab37ca973c2a93d8c43120488.tar.xz
glibc-45b28a8f0b36a48ab37ca973c2a93d8c43120488.zip
Tue Apr 4 00:48:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* misc/progname.c (program_invocation_name,
 	program_invocation_short_name): Make these initialized data
 	definitions.

	* sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
 	so gcc doesn't optimize out the function entirely.
Diffstat (limited to 'sysdeps/mach/hurd/setitimer.c')
-rw-r--r--sysdeps/mach/hurd/setitimer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/setitimer.c b/sysdeps/mach/hurd/setitimer.c
index 4351c5ea99..4f494a4c6e 100644
--- a/sysdeps/mach/hurd/setitimer.c
+++ b/sysdeps/mach/hurd/setitimer.c
@@ -326,6 +326,8 @@ fork_itimer (void)
   it.it_value = it.it_interval;
 
   setitimer_locked (&it, NULL, NULL);
+
+  (void) &fork_itimer;		/* Avoid gcc optimizing out the function.  */
 }
 text_set_element (_hurd_fork_child_hook, fork_itimer);