Bug-fix from current: 386 handling of TARGET_DEFAULT/TARGET_CPU_DEFAULT

is weird.
This commit is contained in:
espie 1999-03-25 21:47:56 +00:00
parent af19cd7134
commit a3a867f82e
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,18 @@
--- gcc/config/i386/openbsd.h.orig Wed Mar 24 03:27:17 1999
+++ gcc/config/i386/openbsd.h Wed Mar 24 03:30:16 1999
@@ -24,6 +24,15 @@
#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 gstab.h
+ to override unix.h TARGET_DEFAULT definition.
+ In effect, this add 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>

View File

@ -0,0 +1,11 @@
--- gcc/configure.in.orig Wed Mar 24 03:29:16 1999
+++ gcc/configure.in Wed Mar 24 03:29:54 1999
@@ -896,8 +896,6 @@
tmake_file=t-netbsd
;;
i[[34567]]86-*-openbsd*)
- # Remove when the math emulator is fixed
- target_cpu_default="MASK_NO_FANCY_MATH_387"
# we need collect2 until our bug is fixed...
use_collect2=yes
;;

View File

@ -0,0 +1,18 @@
--- gcc/config/i386/openbsd.h.orig Wed Mar 24 03:27:17 1999
+++ gcc/config/i386/openbsd.h Wed Mar 24 03:30:16 1999
@@ -24,6 +24,15 @@
#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 gstab.h
+ to override unix.h TARGET_DEFAULT definition.
+ In effect, this add 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>

View File

@ -0,0 +1,11 @@
--- gcc/configure.in.orig Wed Mar 24 03:29:16 1999
+++ gcc/configure.in Wed Mar 24 03:29:54 1999
@@ -896,8 +896,6 @@
tmake_file=t-netbsd
;;
i[[34567]]86-*-openbsd*)
- # Remove when the math emulator is fixed
- target_cpu_default="MASK_NO_FANCY_MATH_387"
# we need collect2 until our bug is fixed...
use_collect2=yes
;;