Module Name: src
Committed By: drochner
Date: Thu Feb 2 13:07:33 UTC 2012
Modified Files:
src/external/gpl3/gcc/dist/gcc/config/i386: netbsd-elf.h
Log Message:
tell the compiler that the i387 runs in double-rounding mode, so it
doesn't need to issue memory store-read sequences to kill excess
precision. makes code smaller and faster, depending on optimization
flags
(as tests on Linux have shown, the compiler doesn't even succeed in
avoiding excess precision)
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h:1.1.1.1 src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h:1.2
--- src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h:1.1.1.1 Tue Jun 21 01:22:03 2011
+++ src/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h Thu Feb 2 13:07:33 2012
@@ -122,3 +122,7 @@ along with GCC; see the file COPYING3.
#define ENABLE_EXECUTE_STACK NETBSD_ENABLE_EXECUTE_STACK
#define TARGET_VERSION fprintf (stderr, " (NetBSD/i386 ELF)");
+
+#undef X87_ENABLE_ARITH
+#define X87_ENABLE_ARITH(MODE) \
+ (flag_excess_precision == EXCESS_PRECISION_FAST || (MODE) == DFmode)