(TARGET_LIBGCC2_CFLAGS): Define.
* crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
(__do_global_ctors): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73811
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
# 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
#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. */
#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. */