From: joel Date: Tue, 18 Jan 2005 14:13:09 +0000 (+0000) Subject: 2005-01-18 Joel Sherrill X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=63759df03e05b179af26d146454b0da069bd6264 2005-01-18 Joel Sherrill PR target/19379 * config/i386/i386.c (override_options): If the 80387 is disabled, then do not return FP values using FP registers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93833 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a9d43128061..29865413cfa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-01-18 Joel Sherrill + + PR target/19379 + * config/i386/i386.c (override_options): If the 80387 is disabled, + then do not return FP values using FP registers. + 2005-01-18 Kazu Hirata * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c, diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index b6cfde306e5..cc3cf4b1657 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1557,6 +1557,10 @@ override_options (void) error ("bad value (%s) for -mfpmath= switch", ix86_fpmath_string); } + /* If the i387 is disabled, then do not return values in it. */ + if (!TARGET_80387) + target_flags &= ~MASK_FLOAT_RETURNS; + if ((x86_accumulate_outgoing_args & TUNEMASK) && !(target_flags_explicit & MASK_ACCUMULATE_OUTGOING_ARGS) && !optimize_size)