summaryrefslogtreecommitdiff
path: root/lang/gcc28/files/patch-01
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1998-03-11 11:49:14 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1998-03-11 11:49:14 +0000
commit83d4c8fdbf4945768cc02809703c67f7147fa72a (patch)
tree9d4dd488479152f9ef27607091eb316b2bbc4dbb /lang/gcc28/files/patch-01
parentUpgrade to 2.4.4. (diff)
Define __FreeBSD__ to be the major version (rather than empty).
Add -fsjlj-exceptions as the default. Requested by: John Fiber
Notes
Notes: svn path=/head/; revision=10113
Diffstat (limited to 'lang/gcc28/files/patch-01')
-rw-r--r--lang/gcc28/files/patch-0118
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/gcc28/files/patch-01 b/lang/gcc28/files/patch-01
new file mode 100644
index 000000000000..7807f16b594b
--- /dev/null
+++ b/lang/gcc28/files/patch-01
@@ -0,0 +1,18 @@
+--- config/i386/freebsd.h.orig Sun Oct 19 09:31:05 1997
++++ config/i386/freebsd.h Wed Mar 11 03:04:25 1998
+@@ -37,6 +37,15 @@
+ #undef CPP_PREDEFINES
+ #define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
+
++/* 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"
++
+ /* Like the default, except no -lg. */
+ #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
+