mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 00:01:21 +08:00
Put HAS_INIT_SECTION ifdefs around Irix6 support.
From-SVN: r13086
This commit is contained in:
parent
e9ac02a6f1
commit
9593ce03b9
@ -197,6 +197,7 @@ __do_global_ctors_aux () /* prologue goes in .init section */
|
||||
|
||||
#else /* defined(INIT_SECTION_ASM_OP) */
|
||||
|
||||
#ifdef HAS_INIT_SECTION
|
||||
/* This case is used by the Irix 6 port, which supports named sections but
|
||||
not an SVR4-style .fini section. __do_global_dtors can be non-static
|
||||
in this case because the -fini switch to ld binds strongly. */
|
||||
@ -208,6 +209,7 @@ __do_global_dtors ()
|
||||
for (p = __DTOR_LIST__ + 1; *p; p++)
|
||||
(*p) ();
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* defined(INIT_SECTION_ASM_OP) */
|
||||
|
||||
@ -322,6 +324,7 @@ __do_global_ctors_aux () /* prologue goes in .text section */
|
||||
|
||||
#else /* defined(INIT_SECTION_ASM_OP) */
|
||||
|
||||
#ifdef HAS_INIT_SECTION
|
||||
/* This case is used by the Irix 6 port, which supports named sections but
|
||||
not an SVR4-style .init section. __do_global_ctors can be non-static
|
||||
in this case because the -init switch to ld binds strongly. */
|
||||
@ -333,6 +336,7 @@ __do_global_ctors ()
|
||||
for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
|
||||
(*p) ();
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* defined(INIT_SECTION_ASM_OP) */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user