OSDN Git Service

* config/mips/mips.c (mips_file_start): Add support for
authorths <ths@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Nov 2007 13:48:55 +0000 (13:48 +0000)
committerths <ths@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Nov 2007 13:48:55 +0000 (13:48 +0000)
flagging 32-bit code with -mfp64 floating-point.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130313 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 5625617..03027c1 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 54e2d62..918f237 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
     }