diff options
| author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2003-11-21 19:48:24 +0000 |
|---|---|---|
| committer | Rainer Orth <ro@gcc.gnu.org> | 2003-11-21 19:48:24 +0000 |
| commit | af8e5a0e1906ddca9cd8f289bfc2d7f914bff5a3 (patch) | |
| tree | 70aecc02d7d88b57c0499a2e3f406fc364dcd8a1 | |
| parent | e9f85cd60b39821f2edfbb2f97fc0f0e9315f3a2 (diff) | |
| download | gcc-af8e5a0e1906ddca9cd8f289bfc2d7f914bff5a3.zip gcc-af8e5a0e1906ddca9cd8f289bfc2d7f914bff5a3.tar.gz gcc-af8e5a0e1906ddca9cd8f289bfc2d7f914bff5a3.tar.bz2 | |
t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
* config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
(TARGET_LIBGCC2_CFLAGS): Define.
* crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
(__do_global_ctors): Likewise.
From-SVN: r73811
| -rw-r--r-- | gcc/ChangeLog | 8 | ||||
| -rw-r--r-- | gcc/config/mips/t-iris6 | 8 | ||||
| -rw-r--r-- | gcc/crtstuff.c | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca933b8..9d0e3ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error. + (TARGET_LIBGCC2_CFLAGS): Define. + + * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare. + (__do_global_ctors): Likewise. + 2003-11-21 Mark Wielaard <mark@klomp.org> * doc/invoke.texi (-O2): Doesn't enable -fweb. diff --git a/gcc/config/mips/t-iris6 b/gcc/config/mips/t-iris6 index 6987925..05f364b 100644 --- a/gcc/config/mips/t-iris6 +++ b/gcc/config/mips/t-iris6 @@ -10,9 +10,13 @@ INSTALL_LIBGCC = install-multilib # For svr4 we build crtbegin.o and crtend.o which serve to add begin and # end labels to the .ctors and .dtors section when we link using gcc. - EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o -CRTSTUFF_T_CFLAGS=-g1 + +# When the native assembler is in use, -g is not supported with the O32 ABI +# and we get a warning for every -mabi=32 compilation. Work around this +# by adding -Wno-error. +CRTSTUFF_T_CFLAGS=-g1 -Wno-error +TARGET_LIBGCC2_CFLAGS = -Wno-error LIB2FUNCS_EXTRA = $(srcdir)/config/mips/_tilib.c diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index dd24b73..b9a29a0b 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -362,6 +362,8 @@ __do_global_ctors_aux (void) /* prologue goes in .init section */ #elif defined(HAS_INIT_SECTION) /* ! INIT_SECTION_ASM_OP */ +extern void __do_global_dtors (void); + /* 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 we protect it with -hidden_symbol. */ @@ -508,6 +510,8 @@ asm (TEXT_SECTION_ASM_OP); #elif defined(HAS_INIT_SECTION) /* ! INIT_SECTION_ASM_OP */ +extern void __do_global_ctors (void); + /* 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 we protect it with -hidden_symbol. */ |
