summaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-10-31 19:53:37 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1996-10-31 19:53:37 +0000
commit4e04a2df98c19ac391060857cc7e52a20a192c84 (patch)
tree93c60b98478e1ada36ff1b40d02125522e7f3132 /gcc/crtstuff.c
parentc359e3f792d12e2d2f838f5484f3c143d5dac08c (diff)
downloadgcc-4e04a2df98c19ac391060857cc7e52a20a192c84.tar.gz
Put HAS_INIT_SECTION ifdefs around Irix6 support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13086 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 6cbb82b6f38..2c682436069 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -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) */