This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Restore MIPS bootstrap
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 05 Jul 2007 21:00:07 +0100
- Subject: Restore MIPS bootstrap
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. */