mips.c (mips_file_start): Add support for flagging 32-bit code with -mfp64 floating...
authorThiemo Seufer <ths@mips.com>
Tue, 20 Nov 2007 13:48:55 +0000 (13:48 +0000)
committerThiemo Seufer <ths@gcc.gnu.org>
Tue, 20 Nov 2007 13:48:55 +0000 (13:48 +0000)
* config/mips/mips.c (mips_file_start): Add support for
flagging 32-bit code with -mfp64 floating-point.

From-SVN: r130313

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

index 5625617b9c25956acfb9b257e53bfc5c95b2e0cd..03027c1729a9fc2539444b46aac954c168f50f23 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-20  Thiemo Seufer  <ths@mips.com>
+
+       * config/mips/mips.c (mips_file_start): Add support for
+       flagging 32-bit code with -mfp64 floating-point.
+
 2007-11-20  Jakub Jelinek  <jakub@redhat.com>
 
        PR c/34146
index 54e2d627b24ad476cd90136b021a0bb1336bbb72..918f23758125b7e938650fc5eeaded4082c6ea52 100644 (file)
@@ -7086,7 +7086,9 @@ mips_file_start (void)
 
 #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);
+              (TARGET_HARD_FLOAT_ABI
+               ? (TARGET_DOUBLE_FLOAT
+                  ? ((!TARGET_64BIT && TARGET_FLOAT64) ? 4 : 1) : 2) : 3));
 #endif
     }