This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
i386: FLT_EVAL_METHOD fix
- From: Michael Matz <matz at suse dot de>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 31 Mar 2003 15:24:29 +0200 (CEST)
- Subject: i386: FLT_EVAL_METHOD fix
Hi,
the below patch corrects the default value for FLT_EVAL_METHOD on x86-64.
If SSE is in use float_t is float and double_t is double, which requires
that this value is 0. 1 is wrong in every case.
Tested on x86-64-linux, with 3.3 and HEAD. OK for both?
Ciao,
Michael.
--
* config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
--- gcc/config/i386/i386.h.orig Fri Mar 14 14:13:20 2003
+++ gcc/config/i386/i386.h Fri Mar 14 14:13:34 2003
@@ -694,7 +694,7 @@ extern int x86_prefetch_sse;
the rounding precision is indeterminate, since either may be chosen
apparently at random. */
#define TARGET_FLT_EVAL_METHOD \
- (TARGET_MIX_SSE_I387 ? -1 : TARGET_SSE_MATH ? 1 : 2)
+ (TARGET_MIX_SSE_I387 ? -1 : TARGET_SSE_MATH ? 0 : 2)
#define SHORT_TYPE_SIZE 16
#define INT_TYPE_SIZE 32