summaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index cce41b65d7e..ce5ef3293ec 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -123,6 +123,7 @@ __do_global_dtors_aux ()
}
/* Stick a call to __do_global_dtors_aux into the .fini section. */
+
static void
fini_dummy ()
{
@@ -142,6 +143,7 @@ fini_dummy ()
function. It is externally callable so that __main can invoke it when
INVOKE__main is defined. This has the additional effect of forcing cc1
to switch to the .text section. */
+
static void __do_global_ctors_aux ();
void __do_global_ctors ()
{
@@ -161,7 +163,7 @@ asm (INIT_SECTION_ASM_OP); /* cc1 doesn't know that we are switching! */
crti.o may do something, such as bump the stack, which we have to
undo before we reach the function prologue code for __do_global_ctors
(directly below). For such systems, define the macro INIT_SECTION_PREAMBLE
- to expand into the code needed to undo the actions of the crti.o file. */
+ to expand into the code needed to undo the actions of the crti.o file. */
#ifdef INIT_SECTION_PREAMBLE
INIT_SECTION_PREAMBLE;
@@ -235,6 +237,7 @@ __do_global_ctors_aux ()
}
/* Stick a call to __do_global_ctors_aux into the .init section. */
+
static void
init_dummy ()
{
@@ -248,7 +251,7 @@ init_dummy ()
/* This is a kludge. The i386 Linux dynamic linker needs ___brk_addr,
__environ and atexit (). We have to make sure they are in the .dynsym
section. We accomplish it by making a dummy call here. This
- code is never reached. */
+ code is never reached. */
#if defined(__linux__) && defined(__PIC__) && defined(__i386__)
{
@@ -282,7 +285,7 @@ init_dummy ()
other libraries, etc. That's because those other initializations may
include setup operations for very primitive things (e.g. initializing
the state of the floating-point coprocessor, etc.) which should be done
- before we start to execute any of the user's code. */
+ before we start to execute any of the user's code. */
static void
__do_global_ctors_aux () /* prologue goes in .text section */