From: Thiemo Seufer Date: Tue, 20 Nov 2007 13:48:55 +0000 (+0000) Subject: mips.c (mips_file_start): Add support for flagging 32-bit code with -mfp64 floating... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a7ea4078e674372b3b23445c0ccf8f0529dc769;p=gcc.git 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 --- 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 + + * config/mips/mips.c (mips_file_start): Add support for + flagging 32-bit code with -mfp64 floating-point. + 2007-11-20 Jakub Jelinek 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 }