summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-05 19:51:48 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-05 19:51:48 +0000
commitd59d4f2165ccc69d685236d501c8d0e3b69909f7 (patch)
tree71e545f842d412321eb1ec7fefbb939e6f77a420
parentcf53f8babcef0e6b0ca93eb2c8e161aa54cb8b1e (diff)
downloadppe42-gcc-d59d4f2165ccc69d685236d501c8d0e3b69909f7.tar.gz
ppe42-gcc-d59d4f2165ccc69d685236d501c8d0e3b69909f7.zip
gcc/
* config/mips/mips.c (mips_file_start): Avoid declaration after code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126383 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a6342261dd4..a8ff7c063c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 5db2ebcf316..29c58982784 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -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;
OpenPOWER on IntegriCloud