summaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-11-07 15:53:03 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-11-07 15:53:03 +0000
commit4f49af36edee7fbb068496659a2f65965a5542ab (patch)
treea60cd645cc4c013215ecb20a0bf617c8c7ef67a0 /gcc/libgcc2.c
parent7a4484cf9e4db2e9b5be249ee37a46d25b76acba (diff)
downloadgcc-4f49af36edee7fbb068496659a2f65965a5542ab.tar.gz
(__{C,D}TOR_LIST): For AIX, initialize these arrays to 0,0, just like
NeXT to avoid a warning message from the AIX 4.1 linker. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10567 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 4656597e06f..921afef5de4 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -2133,7 +2133,7 @@ SYMBOL__MAIN ()
/* We declare the lists here with two elements each,
so that they are valid empty lists if no other definition is loaded. */
#if !defined(INIT_SECTION_ASM_OP) && !defined(CTOR_LISTS_DEFINED_EXTERNALLY)
-#ifdef __NeXT__
+#if defined(__NeXT__) || defined(_AIX)
/* After 2.3, try this definition on all systems. */
func_ptr __CTOR_LIST__[2] = {0, 0};
func_ptr __DTOR_LIST__[2] = {0, 0};