This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FreeBSD headers change request


Please apply these patches for FreeBSD.  They are made realitive to
v1.0.2.

-- David    (obrien@FreeBSD.org)


--- gcc/config/i386/freebsd.h.orig	Fri Feb 13 10:52:24 1998
+++ gcc/config/i386/freebsd.h	Fri Feb 13 11:03:27 1998
@@ -35,10 +35,13 @@
 #include "i386/perform.h"
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
+#define CPP_PREDEFINES "-Di386 -Dunix -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
 
 /* Like the default, except no -lg.  */
 #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
+
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
 
 #undef SIZE_TYPE
 #define SIZE_TYPE "unsigned int"


--- gcc/config/i386/freebsd-elf.h.orig	Fri Mar  6 16:11:54 1998
+++ gcc/config/i386/freebsd-elf.h	Sun Mar 22 18:01:59 1998
@@ -127,6 +127,9 @@
     }									\
 }
 
+#undef CC1PLUS_SPEC
+#define CC1PLUS_SPEC "-fsjlj-exceptions"
+
 #undef SIZE_TYPE
 #define SIZE_TYPE "unsigned int"
  
@@ -140,7 +143,7 @@
 #define WCHAR_TYPE_SIZE BITS_PER_WORD
     
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
+#define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
 
 #undef CPP_SPEC
 #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]