diff options
| author | ths <ths@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-20 13:48:55 +0000 |
|---|---|---|
| committer | ths <ths@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-20 13:48:55 +0000 |
| commit | b54357af7fbfec09e4424fc238ada8385355ce66 (patch) | |
| tree | d50b935bb436d456bfc1dd4c9167a79f8262901e | |
| parent | 67309f77cfcbd1da4624f2ed26b2cef4d1382d07 (diff) | |
| download | ppe42-gcc-b54357af7fbfec09e4424fc238ada8385355ce66.tar.gz ppe42-gcc-b54357af7fbfec09e4424fc238ada8385355ce66.zip | |
* config/mips/mips.c (mips_file_start): Add support for
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
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/mips/mips.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5625617b9c2..03027c1729a 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 54e2d627b24..918f2375812 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 } |

