This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.4 PATCH: Fix IRIX 6 bootstrap failure (-Werror fallout)


Mark Mitchell writes:

> Yes -- but the change to t-iris6 should have a comment explaining why
> -Wno-error is being passed.

Ok, here's the patch I've checked in.  Besides that comment, I've added an
extern to the two declarations in crtstuff.c to match the style of the
others.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


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.

Index: crtstuff.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/crtstuff.c,v
retrieving revision 1.64
diff -u -p -r1.64 crtstuff.c
--- crtstuff.c	31 Oct 2003 20:46:26 -0000	1.64
+++ crtstuff.c	21 Nov 2003 19:47:34 -0000
@@ -362,6 +362,8 @@ __do_global_ctors_aux (void)	/* prologue
 
 #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.  */
@@ -507,6 +509,8 @@ asm (TEXT_SECTION_ASM_OP);
 #endif /* OBJECT_FORMAT_ELF */
 
 #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
Index: config/mips/t-iris6
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/t-iris6,v
retrieving revision 1.21
diff -u -p -r1.21 t-iris6
--- config/mips/t-iris6	16 Nov 2003 19:10:09 -0000	1.21
+++ config/mips/t-iris6	21 Nov 2003 19:47:34 -0000
@@ -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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]