Restore MIPS bootstrap

Richard Sandiford rsandifo@nildram.co.uk
Thu Jul 5 20:08:00 GMT 2007


I've applied this patch to restore MIPS bootstrap after the
recent GNU attributes change.

Richard


gcc/
	* config/mips/mips.c (mips_file_start): Avoid declaration
	after code.

Index: gcc/config/mips/mips.c
===================================================================
--- gcc/config/mips/mips.c	(revision 126382)
+++ gcc/config/mips/mips.c	(working copy)
@@ -6134,11 +6134,6 @@ mips_file_start (void)
 
   if (!TARGET_IRIX)
     {
-#ifdef HAVE_AS_GNU_ATTRIBUTE
-      fprintf (asm_out_file, "\t.gnu_attribute 4, %d\n",
-	       TARGET_HARD_FLOAT_ABI ? (TARGET_DOUBLE_FLOAT ? 1 : 2) : 3);
-#endif
-
       /* Generate a special section to describe the ABI switches used to
 	 produce the resultant binary.  This used to be done by the assembler
 	 setting bits in the ELF header's flags field, but we have run out of
@@ -6174,6 +6169,11 @@ mips_file_start (void)
 
       /* Restore the default section.  */
       fprintf (asm_out_file, "\t.previous\n");
+
+#ifdef HAVE_AS_GNU_ATTRIBUTE
+      fprintf (asm_out_file, "\t.gnu_attribute 4, %d\n",
+	       TARGET_HARD_FLOAT_ABI ? (TARGET_DOUBLE_FLOAT ? 1 : 2) : 3);
+#endif
     }
 
   /* Generate the pseudo ops that System V.4 wants.  */



More information about the Gcc-patches mailing list