mips.c (mips_file_start): Avoid declaration after code.
authorRichard Sandiford <rsandifo@nildram.co.uk>
Thu, 5 Jul 2007 19:51:48 +0000 (19:51 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 5 Jul 2007 19:51:48 +0000 (19:51 +0000)
gcc/
* config/mips/mips.c (mips_file_start): Avoid declaration
after code.

From-SVN: r126383

gcc/ChangeLog
gcc/config/mips/mips.c

index a6342261dd4bdc1f9b52884842ad30eb55aabe38..a8ff7c063c7b2c6b8e9187838a6436f8962ff287 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-05  Richard Sandiford  <rsandifo@nildram.co.uk>
+
+       * config/mips/mips.c (mips_file_start): Avoid declaration
+       after code.
+
 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
 
        * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
index 5db2ebcf316bb1d8c6e20755140cc04ae77343d3..29c58982784f8c0a37f79d48de5152aa112f1279 100644 (file)
@@ -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
@@ -6148,6 +6143,11 @@ mips_file_start (void)
         causes unnecessary IRIX 6 ld warnings.  */
       const char * abi_string = NULL;
 
+#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
+
       switch (mips_abi)
        {
        case ABI_32:   abi_string = "abi32"; break;