summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/config
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-04-01 21:24:42 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-04-01 21:24:42 +0000
commitd0e9112858e81715d48b7527784b6f9ab648e630 (patch)
tree9d1f6423c8bad6dbbb1a8d0facbe8b8ad186e94e /gnu/usr.bin/gcc/config
parent093eb5e808640dabf254710b13bc003cd60f7370 (diff)
Fix TARGET_CPU_DEFAULT/TARGET_DEFAULT mixup (problem is specific to
brain-damaged i386 configuration files). No need to change configure.in/configure as well, since I have not moved to the egcs config for this item yet.
Diffstat (limited to 'gnu/usr.bin/gcc/config')
-rw-r--r--gnu/usr.bin/gcc/config/i386/openbsd.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/gnu/usr.bin/gcc/config/i386/openbsd.h b/gnu/usr.bin/gcc/config/i386/openbsd.h
index 6df3cd0625c..8421baab0aa 100644
--- a/gnu/usr.bin/gcc/config/i386/openbsd.h
+++ b/gnu/usr.bin/gcc/config/i386/openbsd.h
@@ -1,11 +1,17 @@
-/* This goes away when the math-emulator is fixed */
-#define TARGET_CPU_DEFAULT 0400 /* TARGET_NO_FANCY_MATH_387 */
-
/* This is tested by i386gas.h. */
#define YES_UNDERSCORES
#include <i386/gstabs.h>
+/* Remove when the math-emulator is fixed. */
+/* XXX i386 TARGET_DEFAULT/TARGET_CPU_DEFAULT is weird...
+ This must be defined as TARGET_DEFAULT, and after including gstabs.h
+ to override unix.h TARGET_DEFAULT definition.
+ In effect, this adds MASK_NO_FANCY_MATH_387 to the usual definition. */
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT \
+ (MASK_NO_FANCY_MATH_387 | MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS)
+
/* Get perform_* macros to build libgcc.a. */
#include <i386/perform.h>
@@ -30,7 +36,7 @@
#undef WCHAR_TYPE_SIZE
#define WCHAR_TYPE_SIZE 32
-/* $OpenBSD: openbsd.h,v 1.6 1999/01/17 17:41:13 espie Exp $ */
+/* $OpenBSD: openbsd.h,v 1.7 1999/04/01 21:24:41 espie Exp $ */
/* There are conflicting reports about whether this system uses
a different assembler syntax. wilson@cygnus.com says # is right. */