Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/i386 tell the compiler tha...



details:   https://anonhg.NetBSD.org/src/rev/01ce9229a60b
branches:  trunk
changeset: 773443:01ce9229a60b
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu Feb 02 13:07:33 2012 +0000

description:
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)

diffstat:

 external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 515b2342a0e8 -r 01ce9229a60b external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h
--- a/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h       Thu Feb 02 11:13:41 2012 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/i386/netbsd-elf.h       Thu Feb 02 13:07:33 2012 +0000
@@ -122,3 +122,7 @@
 #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)



Home | Main Index | Thread Index | Old Index