Source-Changes-HG archive

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

[src/trunk]: src/gnu/dist/gcc/config/i386 Disable "fancy math" the correct wa...



details:   https://anonhg.NetBSD.org/src/rev/695d7b875aee
branches:  trunk
changeset: 488153:695d7b875aee
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Mon Jun 19 19:48:37 2000 +0000

description:
Disable "fancy math" the correct way (it's TARGET_DEFAULT that is used
for that kind of flags -- the TARGET_CPU_DEFAULT is used to choose the
cpu type to generate code for...)

Fixes PR 10357.

diffstat:

 gnu/dist/gcc/config/i386/netbsd-elf.h |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r fcbe8018822e -r 695d7b875aee gnu/dist/gcc/config/i386/netbsd-elf.h
--- a/gnu/dist/gcc/config/i386/netbsd-elf.h     Mon Jun 19 19:39:09 2000 +0000
+++ b/gnu/dist/gcc/config/i386/netbsd-elf.h     Mon Jun 19 19:48:37 2000 +0000
@@ -24,9 +24,6 @@
 
 /* Get generic i386 definitions. */
 
-/* This goes away when the math-emulator is fixed */
-#define TARGET_CPU_DEFAULT 0400                /* TARGET_NO_FANCY_MATH_387 */
-
 #include <i386/gstabs.h>
 
 /* Get perform_* macros to build libgcc.a.  */
@@ -39,6 +36,11 @@
 
 #define OBJECT_FORMAT_ELF
 
+/* This goes away when the math-emulator is fixed */
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT \
+  (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387)
+
 /*
  * DBX stabs definitions. Same as Solaris and other i386 ELF platforms.
  */



Home | Main Index | Thread Index | Old Index