aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-01-08 19:57:57 +0000
committerRoland McGrath <roland@gnu.org>2002-01-08 19:57:57 +0000
commitffed31f031ba2f8c35043f64877762fa0d69cf5c (patch)
treee0bb022b6bdf91df9a246e909ef5180f06a685cb
parent8e5047861decf650fc01835613da7339b226b464 (diff)
downloadglibc-ffed31f031ba2f8c35043f64877762fa0d69cf5c.zip
glibc-ffed31f031ba2f8c35043f64877762fa0d69cf5c.tar.gz
glibc-ffed31f031ba2f8c35043f64877762fa0d69cf5c.tar.bz2
2002-01-07 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Use volatile on type of ARGC so the compiler doesn't get clever.
-rw-r--r--sysdeps/mach/hurd/i386/init-first.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c
index 51892d5..e16a5cd 100644
--- a/sysdeps/mach/hurd/i386/init-first.c
+++ b/sysdeps/mach/hurd/i386/init-first.c
@@ -1,5 +1,5 @@
/* Initialization code run first thing by the ELF startup code. For i386/Hurd.
- Copyright (C) 1995,96,97,98,99,2000,2001 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2000,2001,02 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -309,14 +309,14 @@ strong_alias (posixland_init, __libc_init_first);
This poorly-named function is called by static-start.S,
which should not exist at all. */
void
-_hurd_stack_setup (int argc __attribute__ ((unused)), ...)
+_hurd_stack_setup (volatile int argc, ...)
{
void doinit (int *data)
{
/* This function gets called with the argument data at TOS. */
- void doinit1 (int argc, ...)
+ void doinit1 (volatile int argc, ...)
{
- init (&argc);
+ init ((int *) &argc);
}
/* Push the user return address after the argument data, and then