From 586c65559add3777fdd27ef709ab4dd728d591d6 Mon Sep 17 00:00:00 2001 From: jdp Date: Fri, 23 Jan 1998 17:49:47 +0000 Subject: Make "-fsjlj-exceptions" (use setjmp/longjmp for exceptions) the default for FreeBSD. 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. Configure with "--with-gnu-as" and "--with-gnu-ld". Define "__FreeBSD__" as 3. --- lang/gcc45/Makefile | 4 ++-- lang/gcc45/files/patch-ad | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 lang/gcc45/files/patch-ad (limited to 'lang/gcc45') diff --git a/lang/gcc45/Makefile b/lang/gcc45/Makefile index 335f43b..8d432dd 100644 --- a/lang/gcc45/Makefile +++ b/lang/gcc45/Makefile @@ -3,7 +3,7 @@ # Date created: 9 Jan 1998 # Whom: John Polstra # -# $Id: Makefile,v 1.2 1998/01/13 05:18:16 asami Exp $ +# $Id: Makefile,v 1.3 1998/01/14 07:24:54 obrien Exp $ # DISTNAME= egcs-1.0.1 @@ -16,7 +16,7 @@ MAINTAINER= jdp@polstra.com GNU_CONFIGURE= yes USE_GMAKE= yes -CONFIGURE_ARGS= i386-unknown-freebsd +CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld i386-unknown-freebsd MAN1= cccp.1 g++.1 g77.1 gcc.1 FME=${PREFIX} diff --git a/lang/gcc45/files/patch-ad b/lang/gcc45/files/patch-ad new file mode 100644 index 0000000..207c128 --- /dev/null +++ b/lang/gcc45/files/patch-ad @@ -0,0 +1,17 @@ +--- gcc/config/i386/freebsd.h.orig Fri Oct 17 23:52:58 1997 ++++ gcc/config/i386/freebsd.h Thu Jan 22 21:50:29 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 "-Dunix -Di386 -D__FreeBSD__=3 -D__386BSD__ -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" -- cgit v1.1