aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThiemo Seufer <ths@mips.com>2007-11-20 13:48:55 +0000
committerThiemo Seufer <ths@gcc.gnu.org>2007-11-20 13:48:55 +0000
commit0a7ea4078e674372b3b23445c0ccf8f0529dc769 (patch)
treed50b935bb436d456bfc1dd4c9167a79f8262901e /gcc
parenta0ba4e53fdbf2c06629de9f1fcd26c2b663b3461 (diff)
downloadgcc-0a7ea4078e674372b3b23445c0ccf8f0529dc769.zip
gcc-0a7ea4078e674372b3b23445c0ccf8f0529dc769.tar.gz
gcc-0a7ea4078e674372b3b23445c0ccf8f0529dc769.tar.bz2
mips.c (mips_file_start): Add support for flagging 32-bit code with -mfp64 floating-point.
* config/mips/mips.c (mips_file_start): Add support for flagging 32-bit code with -mfp64 floating-point. From-SVN: r130313
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5625617..03027c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 54e2d62..918f237 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -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
}