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]

[PATCH] Attempt to fix MIPS bootstrap broken by PR middle-end/20218 patch


H.J.'s Patch caused a redefintion warning for ASM_OUTPUT_EXTERNAL in mips.h. This caused the bootstrap to fail in stage2.

This patch simply undefines it before its re-definition. This fixes the bootstrap problem , but probably still leaves mips with the PR20218 problem. Fixing that will have to be the subject of a follow-up patch.

Committed as obvious.

2006-12-12 David Daney <ddaney@avtrex.com>

      * config/mips/mips.h (ASM_OUTPUT_EXTERNAL): Undefine it before
      define.


Index: config/mips/mips.h
===================================================================
--- config/mips/mips.h	(revision 119816)
+++ config/mips/mips.h	(working copy)
@@ -2519,6 +2519,7 @@ while (0)
    the assembler uses length information on externals to allocate in
    data/sdata bss/sbss, thereby saving exec time.  */
 
+#undef ASM_OUTPUT_EXTERNAL
 #define ASM_OUTPUT_EXTERNAL(STREAM,DECL,NAME) \
   mips_output_external(STREAM,DECL,NAME)
 

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