summaryrefslogtreecommitdiff
path: root/lang/gcc28/files/patch-02
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc28/files/patch-02')
-rw-r--r--lang/gcc28/files/patch-0224
1 files changed, 24 insertions, 0 deletions
diff --git a/lang/gcc28/files/patch-02 b/lang/gcc28/files/patch-02
new file mode 100644
index 000000000000..217ef1d83b89
--- /dev/null
+++ b/lang/gcc28/files/patch-02
@@ -0,0 +1,24 @@
+--- config/i386/freebsd-elf.h.orig Fri Dec 5 04:15:34 1997
++++ config/i386/freebsd-elf.h Wed Mar 11 03:05:09 1998
+@@ -140,10 +140,20 @@
+ #define WCHAR_TYPE_SIZE BITS_PER_WORD
+
+ #undef CPP_PREDEFINES
+-#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__=2 -Asystem(FreeBSD)"
++#define CPP_PREDEFINES "-Dunix -D__ELF__ -D__FreeBSD__ -Asystem(FreeBSD)"
+
+ #undef CPP_SPEC
+ #define CPP_SPEC "%(cpp_cpu) %[cpp_cpu] %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
++
++
++/* need "-fsjlj-exceptions" (use setjmp/longjmp for exceptions) the default.
++ The standard exception implementation reliably
++ dumps core under FreeBSD. Users can put "-fno-sjlj-exceptions" on
++ the command line if they really want to override the new default. */
++#ifdef CC1PLUS_SPEC
++#error "CC1PLUS_SPEC needs ``-fsjlj-exceptions'', but is already defined."
++#endif
++#define CC1PLUS_SPEC "-fsjlj-exceptions"
+
+ #undef LIB_SPEC
+ #if 1