diff options
Diffstat (limited to 'lang/pgcc/files')
-rw-r--r-- | lang/pgcc/files/patch-ad | 59 | ||||
-rw-r--r-- | lang/pgcc/files/patch-af | 136 | ||||
-rw-r--r-- | lang/pgcc/files/patch-ah | 63 | ||||
-rw-r--r-- | lang/pgcc/files/patch-aj | 20 | ||||
-rw-r--r-- | lang/pgcc/files/patch-ak | 47 | ||||
-rw-r--r-- | lang/pgcc/files/patch-al | 46 | ||||
-rw-r--r-- | lang/pgcc/files/patch-am | 19 | ||||
-rw-r--r-- | lang/pgcc/files/patch-an | 11 | ||||
-rw-r--r-- | lang/pgcc/files/patch-ap | 26 | ||||
-rw-r--r-- | lang/pgcc/files/patch-aq | 11 | ||||
-rw-r--r-- | lang/pgcc/files/patch-bc | 31 | ||||
-rw-r--r-- | lang/pgcc/files/patch-fb | 17 | ||||
-rw-r--r-- | lang/pgcc/files/patch-fc | 19 | ||||
-rw-r--r-- | lang/pgcc/files/patch-va | 20 |
14 files changed, 263 insertions, 262 deletions
diff --git a/lang/pgcc/files/patch-ad b/lang/pgcc/files/patch-ad index bea070deb344..f8a3b90fdb1a 100644 --- a/lang/pgcc/files/patch-ad +++ b/lang/pgcc/files/patch-ad @@ -1,5 +1,5 @@ ---- gcc/config/i386/freebsd-aout.h.orig Mon Mar 1 14:47:33 1999 -+++ gcc/config/i386/freebsd-aout.h Sat Mar 20 00:27:02 1999 +--- gcc/config/i386/freebsd-aout.h.orig Tue Jun 1 17:02:37 1999 ++++ gcc/config/i386/freebsd-aout.h Mon Jun 14 14:11:20 1999 @@ -20,6 +20,10 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -8,25 +8,31 @@ +/* Get generic FreeBSD definitions. */ +#include <freebsd.h> + - /* This goes away when the math-emulator is fixed */ - #define TARGET_CPU_DEFAULT 0400 /* TARGET_NO_FANCY_MATH_387 */ + /* This is tested by i386gas.h. */ + #define YES_UNDERSCORES -@@ -35,7 +39,7 @@ +@@ -32,12 +36,10 @@ #include "i386/perform.h" + /* This goes away when the math-emulator is fixed */ +-#undef TARGET_DEFAULT +-#define TARGET_DEFAULT \ +- (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387) ++#define TARGET_CPU_DEFAULT 0400 /* TARGET_NO_FANCY_MATH_387 */ + #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" +#define CPP_PREDEFINES "-Di386 -Acpu(i386) -Amachine(i386)" CPP_FBSD_PREDEFINES /* Like the default, except no -lg. */ #define LIB_SPEC "%{!shared:%{!pg:-lc}%{pg:-lc_p}}" -@@ -85,14 +89,6 @@ +@@ -87,14 +89,6 @@ necessary when compiling PIC code. */ #define JUMP_TABLES_IN_TEXT_SECTION 1 - --/* Don't default to pcc-struct-return, because gcc is the only compiler, and -- we want to retain compatibility with older gcc versions. */ +-/* Don't default to pcc-struct-return, because in FreeBSD we prefer the +- superior nature of the older gcc way. */ -#define DEFAULT_PCC_STRUCT_RETURN 0 - -/* Ensure we the configuration knows our system correctly so we can link with @@ -35,7 +41,7 @@ /* i386 freebsd still uses old binutils that don't insert nops by default when the .align directive demands to insert extra space in the text -@@ -103,19 +99,18 @@ +@@ -105,19 +99,18 @@ /* Profiling routines, partially copied from i386/osfrose.h. */ @@ -58,7 +64,7 @@ fprintf (FILE, "\tcall mcount\n"); \ } \ } -@@ -133,6 +128,7 @@ +@@ -135,6 +128,7 @@ #define TYPE_ASM_OP ".type" #define SIZE_ASM_OP ".size" @@ -66,7 +72,7 @@ /* The following macro defines the format used to output the second operand of the .type assembler directive. Different svr4 assemblers -@@ -142,6 +138,12 @@ +@@ -144,6 +138,12 @@ #define TYPE_OPERAND_FMT "@%s" @@ -79,34 +85,9 @@ /* Write the extra assembler code needed to declare a function's result. Most svr4 assemblers don't require any special declaration of the result value, but there are exceptions. */ -@@ -244,29 +246,4 @@ +@@ -245,3 +245,5 @@ + #define STARTFILE_SPEC \ "%{shared:c++rt0.o%s} \ %{!shared:%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}}" - --/* This is defined when gcc is compiled in the BSD-directory-tree, and must -- * make up for the gap to all the stuff done in the GNU-makefiles. -- */ -- --#ifdef FREEBSD_NATIVE -- --#define INCLUDE_DEFAULTS { \ -- { "/usr/include", 0, 0, 0 }, \ -- { "/usr/include/g++", "G++", 1, 1 }, \ -- { 0, 0, 0, 0} \ -- } -- --#undef MD_EXEC_PREFIX --#define MD_EXEC_PREFIX "/usr/libexec/" -- --#undef STANDARD_STARTFILE_PREFIX --#define STANDARD_STARTFILE_PREFIX "/usr/lib" -- --#if 0 /* This is very wrong!!! */ --#define DEFAULT_TARGET_MACHINE "i386-unknown-freebsd_1.0" --#define GPLUSPLUS_INCLUDE_DIR "/usr/local/lib/gcc-lib/i386-unknown-freebsd_1.0/2.5.8/include" --#define TOOL_INCLUDE_DIR "/usr/local/i386-unknown-freebsd_1.0/include" --#define GCC_INCLUDE_DIR "/usr/local/lib/gcc-lib/i386-unknown-freebsd_1.0/2.5.8/include" --#endif -- --#endif /* FREEBSD_NATIVE */ ++ +#define MD_STARTFILE_PREFIX "/usr/lib/aout/" diff --git a/lang/pgcc/files/patch-af b/lang/pgcc/files/patch-af index c1f1ba0e855f..533a35a95584 100644 --- a/lang/pgcc/files/patch-af +++ b/lang/pgcc/files/patch-af @@ -1,85 +1,83 @@ ---- gcc/config/i386/freebsd.h.orig Mon Mar 1 14:47:32 1999 -+++ gcc/config/i386/freebsd.h Sun Mar 21 16:58:39 1999 -@@ -21,19 +21,13 @@ - the Free Software Foundation, 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -+ -+/* Get generic FreeBSD definitions. */ -+#include <freebsd.h> -+ - #undef TARGET_VERSION - #define TARGET_VERSION fprintf (stderr, " (i386 FreeBSD/ELF)"); - --/* The svr4 ABI for the i386 says that records and unions are returned -- in memory. */ --/* On FreeBSD, we do not. */ --#undef DEFAULT_PCC_STRUCT_RETURN --#define DEFAULT_PCC_STRUCT_RETURN 0 -- --/* This gets defined in tm.h->linux.h->svr4.h, and keeps us from using -- libraries compiled with the native cc, so undef it. */ --#undef NO_DOLLAR_IN_LABEL -- - /* This is how to output an element of a case-vector that is relative. - This is only used for PIC code. See comments by the `casesi' insn in - i386.md for an explanation of the expression this outputs. */ -@@ -113,22 +107,19 @@ +--- gcc/config/i386/freebsd.h.orig Thu Jun 17 05:33:32 1999 ++++ gcc/config/i386/freebsd.h Sat Jul 24 17:59:06 1999 +@@ -135,6 +135,10 @@ : ((n) >= FIRST_STACK_REG && (n) <= LAST_STACK_REG) ? (n)+3 \ : (-1)) --/* Output assembler code to FILE to increment profiler label # LABELNO -- for profiling a function entry. */ -+/* Tell final.c that we don't need a label passed to mcount. */ ++/* Don't use EGCS's normal profiling code -- we have our own fine-grained ++ basic block profiling. */ +#define NO_PROFILE_DATA ++ + /* Tell final.c that we don't need a label passed to mcount. */ #undef FUNCTION_PROFILER - #define FUNCTION_PROFILER(FILE, LABELNO) \ - { \ - if (flag_pic) \ - { \ -- fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%edx\n", \ -- LPREFIX, (LABELNO)); \ -- fprintf (FILE, "\tcall *mcount@GOT(%%ebx)\n"); \ -+ fprintf (FILE, "\tcall *.mcount@GOT(%%ebx)\n"); \ - } \ - else \ - { \ -- fprintf (FILE, "\tmovl $%sP%d,%%edx\n", LPREFIX, (LABELNO)); \ -- fprintf (FILE, "\tcall mcount\n"); \ -+ fprintf (FILE, "\tcall .mcount\n"); \ - } \ - } - -@@ -145,26 +136,16 @@ +@@ -162,22 +166,30 @@ #define WCHAR_TYPE_SIZE BITS_PER_WORD #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Di386 -Dunix -D__ELF__ -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" -+#define CPP_PREDEFINES "-Di386 -D__ELF__ -Acpu(i386) -Amachine(i386)" CPP_FBSD_PREDEFINES ++#define CPP_PREDEFINES "-Di386 -Acpu(i386) -Amachine(i386)" CPP_FBSD_PREDEFINES #undef CPP_SPEC -#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}" -+#define CPP_SPEC \ -+ "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{m486:-D__i486__}" -+ /* %{pthread:-D_REENTRANT} */ ++#if TARGET_CPU_DEFAULT == 2 ++#define CPP_SPEC "\ ++ %{!maout: -D__ELF__} \ ++ %{munderscores: -D__UNDERSCORES__} \ ++ %{maout: %{!mno-underscores: -D__UNDERSCORES__}} \ ++ %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{!m386:-D__i486__}" ++#else ++#define CPP_SPEC "\ ++ %{!maout: -D__ELF__} \ ++ %{munderscores: -D__UNDERSCORES__} \ ++ %{maout: %{!mno-underscores: -D__UNDERSCORES__}} \ ++ %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{m486:-D__i486__}" ++#endif ++ ++#undef CC1_SPEC ++#define CC1_SPEC "\ ++ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \ ++ %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}" + +-/* This defines which switch letters take arguments. On FreeBSD, most of +- the normal cases (defined in gcc.c) apply, and we also have -h* and +- -z* options (for the linker) (comming from svr4). +- We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */ +- +-#undef SWITCH_TAKES_ARG +-#define SWITCH_TAKES_ARG(CHAR) \ +- (DEFAULT_SWITCH_TAKES_ARG (CHAR) \ +- || (CHAR) == 'h' \ +- || (CHAR) == 'z' \ +- || (CHAR) == 'R') ++#undef ASM_SPEC ++#define ASM_SPEC "%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}" - #undef LIB_SPEC --#if 1 --/* We no longer link with libc_p.a or libg.a by default. If you -- * want to profile or debug the C library, please add -- * -lc_p or -ggdb to LDFLAGS at the link time, respectively. -- */ --#define LIB_SPEC \ -- "%{!shared: %{mieee-fp:-lieee} %{p:-lgmon} %{pg:-lgmon} \ -- %{!ggdb:-lc} %{ggdb:-lg}}" --#else - #define LIB_SPEC \ + /* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add + the magical crtbegin.o file (see crtstuff.c) which provides part +@@ -186,11 +198,11 @@ + + #undef STARTFILE_SPEC + #define STARTFILE_SPEC \ - "%{!shared: \ -- %{mieee-fp:-lieee} %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \ -- %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}}" --#endif -+ "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_p}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}" +- %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \ +- %{!p:%{profile:gcrt1.o%s} \ +- %{!profile:crt1.o%s}}}} \ +- crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" ++ "%{maout: %{shared:c++rt0.o%s} \ ++ %{!shared:%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}}} \ ++ %{!maout: %{!shared: \ ++ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \ ++ crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}" + + /* Provide a ENDFILE_SPEC appropriate for FreeBSD. Here we tack on + the magical crtend.o file (see crtstuff.c) which provides part of +@@ -200,7 +212,7 @@ + + #undef ENDFILE_SPEC + #define ENDFILE_SPEC \ +- "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s" ++ "%{!maout: %{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s}" - /* Provide a LINK_SPEC appropriate for FreeBSD. Here we provide support - for the special GCC options -static and -shared, which allow us to + /* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate + libc, depending on whether we're doing profiling or need threads support. diff --git a/lang/pgcc/files/patch-ah b/lang/pgcc/files/patch-ah index 8aa3792b1950..eff3a21fd16b 100644 --- a/lang/pgcc/files/patch-ah +++ b/lang/pgcc/files/patch-ah @@ -1,6 +1,6 @@ ---- gcc/config/i386/i386.c.orig Wed May 12 17:51:23 1999 -+++ gcc/config/i386/i386.c Wed May 12 17:54:30 1999 -@@ -54,6 +54,11 @@ +--- gcc/config/i386/i386.c.orig Sat Apr 17 14:13:52 1999 ++++ gcc/config/i386/i386.c Sun Apr 18 15:52:52 1999 +@@ -51,6 +51,11 @@ #define CHECK_STACK_LIMIT -1 #endif @@ -12,76 +12,43 @@ /* Type of an operand for ix86_{binary,unary}_operator_ok */ enum reg_mem { -@@ -1987,13 +1992,11 @@ +@@ -1809,8 +1814,7 @@ char *name ATTRIBUTE_UNUSED; { rtx xops[2]; - int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table - || current_function_uses_const_pool); ++ int pic_reg_used = PIC_REG_USED; xops[0] = pic_offset_table_rtx; xops[1] = stack_pointer_rtx; - /* Deep branch prediction favors having a return for every call. */ -- if (pic_reg_used && TARGET_DEEP_BRANCH_PREDICTION) -+ if (PIC_REG_USED && TARGET_DEEP_BRANCH_PREDICTION) - { - tree prologue_node; - -@@ -2123,8 +2126,7 @@ +@@ -2006,8 +2010,7 @@ register int regno; int limit; rtx xops[4]; - int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table - || current_function_uses_const_pool); + int pic_reg_used = PIC_REG_USED; - long tsize = ix86_frame_size (); + HOST_WIDE_INT tsize = ix86_compute_frame_size (get_frame_size (), (int *)0); rtx insn; int cfa_offset = INCOMING_FRAME_SP_OFFSET, cfa_store_offset = cfa_offset; -@@ -2290,8 +2292,6 @@ +@@ -2177,8 +2180,7 @@ int nregs = 0; int reglimit = (frame_pointer_needed ? FRAME_POINTER_REGNUM : STACK_POINTER_REGNUM); - int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table - || current_function_uses_const_pool); ++ int pic_reg_used = PIC_REG_USED; #ifdef NON_SAVING_SETJMP if (NON_SAVING_SETJMP && current_function_calls_setjmp) -@@ -2303,7 +2303,7 @@ - - for (regno = reglimit - 1; regno >= 0; regno--) - if ((regs_ever_live[regno] && ! call_used_regs[regno]) -- || (regno == PIC_OFFSET_TABLE_REGNUM && pic_reg_used)) -+ || (regno == PIC_OFFSET_TABLE_REGNUM && PIC_REG_USED)) - nregs++; - - return nregs == 0 || ! frame_pointer_needed; -@@ -2337,8 +2337,7 @@ - register int nregs, limit; - int offset; +@@ -2224,8 +2226,7 @@ + register int limit; + int nregs; rtx xops[3]; - int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table - || current_function_uses_const_pool); + int pic_reg_used = PIC_REG_USED; - long tsize = ix86_frame_size (); - - /* Compute the number of registers to pop */ -@@ -5714,8 +5713,7 @@ - { - int regno; - int offset = 0; -- int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table -- || current_function_uses_const_pool); -+ int pic_reg_used = PIC_REG_USED; - int tsize = get_frame_size (); - - for (regno = 0; regno < STACK_POINTER_REGNUM; regno++) -@@ -5741,8 +5739,7 @@ - { - int regno; - int offset = 0; -- int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table -- || current_function_uses_const_pool); -+ int pic_reg_used = PIC_REG_USED; - int limit = (frame_pointer_needed ? FRAME_POINTER_REGNUM : STACK_POINTER_REGNUM); - int tsize = get_frame_size (); - + int sp_valid = !frame_pointer_needed || current_function_sp_is_unchanging; + HOST_WIDE_INT offset; + HOST_WIDE_INT tsize = ix86_compute_frame_size (get_frame_size (), &nregs); diff --git a/lang/pgcc/files/patch-aj b/lang/pgcc/files/patch-aj index 035627fc0908..4666dfa4e86f 100644 --- a/lang/pgcc/files/patch-aj +++ b/lang/pgcc/files/patch-aj @@ -1,14 +1,14 @@ ---- config.guess.orig Mon Mar 1 14:37:59 1999 -+++ config.guess Sat Mar 13 19:28:44 1999 -@@ -478,9 +478,9 @@ +--- config.guess.orig Sun May 30 09:04:33 1999 ++++ config.guess Mon Jun 21 00:55:29 1999 +@@ -521,9 +521,9 @@ exit 0 ;; *:FreeBSD:*:*) - if test -x /usr/bin/objformat -a "elf" = "`/usr/bin/objformat`"; then -- echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` -- else - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` -+ else -+ echo ${UNAME_MACHINE}-unknown-freebsdaout`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - fi + if test -x /usr/bin/objformat -a "elf" = "`/usr/bin/objformat`"; then +- echo ${UNAME_MACHINE}-unknown-freebsdelf ++ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` + else +- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` ++ echo ${UNAME_MACHINE}-unknown-freebsdaout`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` + fi exit 0 ;; *:NetBSD:*:*) diff --git a/lang/pgcc/files/patch-ak b/lang/pgcc/files/patch-ak index 2e54beea1a61..c5585f836a0e 100644 --- a/lang/pgcc/files/patch-ak +++ b/lang/pgcc/files/patch-ak @@ -1,11 +1,11 @@ ---- gcc/configure.orig Sun Mar 14 02:59:02 1999 -+++ gcc/configure Sat Mar 20 00:40:05 1999 -@@ -2395,6 +2395,15 @@ +--- gcc/configure.orig Tue Jun 8 02:19:23 1999 ++++ gcc/configure Mon Jun 14 23:54:18 1999 +@@ -3058,6 +3058,15 @@ thread_file='posix' fi ;; + alpha*-*-freebsd*) -+ tm_file="${tm_file} freebsd.h alpha/freebsd.h alpha/freebsd-elf.h" ++ tm_file="${tm_file} freebsd.h alpha/freebsd.h" + xm_file="${xm_file} xm-freebsd.h" + target_cpu_default="MASK_GAS" + tmake_file="t-freebsd alpha/t-crtbe" @@ -14,36 +14,29 @@ + gas=yes gnu_ld=yes + ;; alpha*-*-netbsd*) - tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h" - xm_file="xm-netbsd.h ${xm_file}" -@@ -2851,21 +2860,21 @@ + tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" + target_cpu_default="MASK_GAS" +@@ -3536,17 +3545,17 @@ # Next line turned off because both 386BSD and BSD/386 use GNU ld. # use_collect2=yes ;; - i[34567]86-*-freebsdelf*) -- tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" -+ i[34567]86-*-freebsdaout*) +- tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h" ++ i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsdaout*) + tm_file=i386/freebsd-aout.h - # On FreeBSD, the headers are already ok, except for math.h. - fixincludes=fixinc.wrap -- extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" -- tmake_file=i386/t-freebsd -- gas=yes -- gnu_ld=yes -- stabs=yes + tmake_file=t-freebsd - ;; - i[34567]86-*-freebsd*) ++ ;; ++ i[34567]86-*-freebsd[3-9].* | i[34567]86-*-freebsd[3-9] | i[34567]86-*-freebsd* | i[34567]86-*-freebsdelf*) ++ tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h" + extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" + tmake_file=t-freebsd + gas=yes + gnu_ld=yes + stabs=yes +- ;; +- i[34567]86-*-freebsd*) - tm_file=i386/freebsd.h -+ tm_file="i386/i386.h i386/att.h linux.h i386/freebsd.h i386/perform.h" - # On FreeBSD, the headers are already ok, except for math.h. - fixincludes=fixinc.wrap -- tmake_file=i386/t-freebsd -+ extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" -+ tmake_file=t-freebsd -+ gas=yes -+ gnu_ld=yes -+ stabs=yes +- tmake_file=t-freebsd ;; i[34567]86-*-netbsd*) tm_file=i386/netbsd.h diff --git a/lang/pgcc/files/patch-al b/lang/pgcc/files/patch-al index c8a195127ed0..de95c4439b95 100644 --- a/lang/pgcc/files/patch-al +++ b/lang/pgcc/files/patch-al @@ -1,11 +1,11 @@ ---- gcc/configure.in.orig Sun Mar 7 16:22:22 1999 -+++ gcc/configure.in Sat Mar 20 00:40:58 1999 -@@ -416,6 +416,15 @@ +--- gcc/configure.in.orig Mon Jun 7 14:37:24 1999 ++++ gcc/configure.in Mon Jun 14 19:25:53 1999 +@@ -625,6 +625,15 @@ thread_file='posix' fi ;; + alpha*-*-freebsd*) -+ tm_file="${tm_file} freebsd.h alpha/freebsd.h alpha/freebsd-elf.h" ++ tm_file="${tm_file} freebsd.h alpha/freebsd.h" + xm_file="${xm_file} xm-freebsd.h" + target_cpu_default="MASK_GAS" + tmake_file="t-freebsd alpha/t-crtbe" @@ -14,36 +14,34 @@ + gas=yes gnu_ld=yes + ;; alpha*-*-netbsd*) - tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h" - xm_file="xm-netbsd.h ${xm_file}" -@@ -872,21 +881,21 @@ - # Next line turned off because both 386BSD and BSD/386 use GNU ld. + tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h" + target_cpu_default="MASK_GAS" +@@ -1136,20 +1145,20 @@ # use_collect2=yes ;; -- i[[34567]]86-*-freebsdelf*) -- tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" -+ i[[34567]]86-*-freebsdaout*) -+ tm_file=i386/freebsd-aout.h - # On FreeBSD, the headers are already ok, except for math.h. - fixincludes=fixinc.wrap + changequote(,)dnl +- i[34567]86-*-freebsdelf*) +++ i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd[12] | i[34567]86-*-freebsdaout*) + changequote([,])dnl +- tm_file="i386/i386.h i386/att.h svr4.h i386/freebsd-elf.h i386/perform.h" - extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" -- tmake_file=i386/t-freebsd ++ tm_file=i386/freebsd.h + tmake_file=t-freebsd - gas=yes - gnu_ld=yes - stabs=yes -+ tmake_file=t-freebsd ;; - i[[34567]]86-*-freebsd*) + changequote(,)dnl +- i[34567]86-*-freebsd*) ++ i[34567]86-*-freebsd[3-9].* | i[34567]86-*-freebsd[3-9] | i[34567]86-*-freebsd* | i[34567]86-*-freebsdelf* | i[34567]86-*-freebsd*) + changequote([,])dnl - tm_file=i386/freebsd.h -+ tm_file="i386/i386.h i386/att.h linux.h i386/freebsd.h i386/perform.h" - # On FreeBSD, the headers are already ok, except for math.h. - fixincludes=fixinc.wrap -- tmake_file=i386/t-freebsd ++ tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h" + extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" -+ tmake_file=t-freebsd + tmake_file=t-freebsd + gas=yes + gnu_ld=yes + stabs=yes ;; - i[[34567]]86-*-netbsd*) - tm_file=i386/netbsd.h + changequote(,)dnl + i[34567]86-*-netbsd*) diff --git a/lang/pgcc/files/patch-am b/lang/pgcc/files/patch-am index f69f6ffa7798..c3c4553367c9 100644 --- a/lang/pgcc/files/patch-am +++ b/lang/pgcc/files/patch-am @@ -1,12 +1,7 @@ ---- libstdc++/stl/stl_rope.h.orig Fri Feb 20 03:13:44 1998 -+++ libstdc++/stl/stl_rope.h Sun Feb 28 03:50:24 1999 -@@ -702,7 +702,8 @@ - __rope_iterator_base<charT,Alloc>(r.tree_ptr, pos) {} - __rope_const_iterator& operator= (const __rope_const_iterator & x) { - if (0 != x.buf_ptr) { -- *this = x; -+ *(static_cast<__rope_iterator_base<charT,Alloc>*>(this)) = x; -+ // bugfix by Kevin Atkinosn (kevina@clark.net) was *this = x; - } else { - current_pos = x.current_pos; - root = x.root; +--- gcc/config/t-freebsd.orig Tue Jun 1 17:02:39 1999 ++++ gcc/config/t-freebsd Tue Jun 22 11:05:25 1999 +@@ -1,4 +1,2 @@ + # Don't run fixproto + STMP_FIXPROTO = +-# Use only native include files +-USER_H = $(EXTRA_HEADERS) $(LANG_EXTRA_HEADERS) diff --git a/lang/pgcc/files/patch-an b/lang/pgcc/files/patch-an new file mode 100644 index 000000000000..36378bfeee3f --- /dev/null +++ b/lang/pgcc/files/patch-an @@ -0,0 +1,11 @@ +--- gcc/fixinc/mkfixinc.sh.orig Sat May 15 11:21:35 1999 ++++ gcc/fixinc/mkfixinc.sh Thu Jun 10 19:49:25 1999 +@@ -40,7 +40,7 @@ + + *-*-netbsd* | \ + alpha*-*-linux-gnulibc1* | \ +- i[34567]86-*-freebsd* | \ ++ *-*-freebsd* | \ + i[34567]86-*-netbsd* | i[34567]86-*-openbsd* | \ + i[34567]86-*-solaris2* | \ + sparcv9-*-solaris2* | \ diff --git a/lang/pgcc/files/patch-ap b/lang/pgcc/files/patch-ap new file mode 100644 index 000000000000..f7a486910063 --- /dev/null +++ b/lang/pgcc/files/patch-ap @@ -0,0 +1,26 @@ +--- gcc/ginclude/stddef.h.orig Wed Dec 16 13:19:25 1998 ++++ gcc/ginclude/stddef.h Tue Jun 22 11:05:25 1999 +@@ -109,7 +109,6 @@ + #define _T_PTRDIFF + #define __PTRDIFF_T + #define _PTRDIFF_T_ +-#define _BSD_PTRDIFF_T_ + #define ___int_ptrdiff_t_h + #define _GCC_PTRDIFF_T + #ifndef __PTRDIFF_TYPE__ +@@ -156,7 +155,6 @@ + #define _T_SIZE + #define __SIZE_T + #define _SIZE_T_ +-#define _BSD_SIZE_T_ + #define _SIZE_T_DEFINED_ + #define _SIZE_T_DEFINED + #define ___int_size_t_h +@@ -217,7 +215,6 @@ + #define _T_WCHAR + #define __WCHAR_T + #define _WCHAR_T_ +-#define _BSD_WCHAR_T_ + #define _WCHAR_T_DEFINED_ + #define _WCHAR_T_DEFINED + #define _WCHAR_T_H diff --git a/lang/pgcc/files/patch-aq b/lang/pgcc/files/patch-aq new file mode 100644 index 000000000000..32f0788b5379 --- /dev/null +++ b/lang/pgcc/files/patch-aq @@ -0,0 +1,11 @@ +--- gcc/ginclude/stdarg.h.orig Fri May 7 18:52:35 1999 ++++ gcc/ginclude/stdarg.h Wed Jun 23 16:38:00 1999 +@@ -67,7 +67,7 @@ + + #ifndef __GNUC_VA_LIST + #define __GNUC_VA_LIST +-#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__) ++#if defined(__svr4__) || defined(_AIX) || defined(_M_UNIX) || defined(__NetBSD__) || defined(__FreeBSD__) + typedef char *__gnuc_va_list; + #else + typedef void *__gnuc_va_list; diff --git a/lang/pgcc/files/patch-bc b/lang/pgcc/files/patch-bc index c6faefae79d6..c3159ca2788c 100644 --- a/lang/pgcc/files/patch-bc +++ b/lang/pgcc/files/patch-bc @@ -1,16 +1,16 @@ ---- libstdc++/Makefile.in.orig Sat Jul 11 19:20:49 1998 -+++ libstdc++/Makefile.in Sun Mar 14 21:48:39 1999 +--- libstdc++/Makefile.in.orig Sat Jul 17 22:50:47 1999 ++++ libstdc++/Makefile.in Tue Jul 20 07:56:00 1999 @@ -14,7 +14,7 @@ # along with this library; see the file COPYING. If not, write to the Free # Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. --VERSION = 2.9.0 -+VERSION = 3 +-VERSION = 2.10.0 ++VERSION = 4 + INTERFACE = 3 - OBJS = cstringi.o stdexcepti.o cstdlibi.o cmathi.o stlinst.o - SUBLIBS = $(STAMP)-string $(STAMP)-complx -@@ -98,7 +98,8 @@ - ln -f -s $(SHLIB) $(SHLINK) + gxx_include_dir=${includedir}/g++ +@@ -111,7 +111,8 @@ + $(LN_S) $(SHLIB) $(SHLINK) || cp $(ARLIB) $(ARLINK) mshlink: - @$(MAKE) $(MSHLINK) "SHLINK=$(MSHLINK)" @@ -19,15 +19,16 @@ $(IO_DIR)/iostream.list: force cd $(IO_DIR) ; $(MAKE) $(FLAGS_TO_PASS) iostream.list -@@ -281,10 +282,7 @@ - if [ $$FILE = $(SHLINK) ] ; then \ - ln -f -s $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ +@@ -336,11 +337,7 @@ + || cp $${RELINSTALLDIR}$(ARLIB) $${INSTALLLINKDIR}$(MULTISUBDIR)/$$FILE ; \ + fi; \ elif [ $$FILE = mshlink ]; then \ - for FILE in $(MSHLINK) ; do \ - rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ -- ln -f -s $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ +- $(LN_S) $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE \ +- || cp $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ - done; \ + true; \ - elif [ $$FILE = $(SHLIB) ]; then \ - $(INSTALL_PROGRAM) $$FILE $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ - : On the HP, shared libraries must be mode 555. ;\ + elif [ $$FILE = marlink ]; then \ + for FILE in $(MARLINK) ; do \ + rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ diff --git a/lang/pgcc/files/patch-fb b/lang/pgcc/files/patch-fb index b86da95cfa90..dae6d331898c 100644 --- a/lang/pgcc/files/patch-fb +++ b/lang/pgcc/files/patch-fb @@ -1,12 +1,13 @@ ---- gcc/flags.h.orig Sat Feb 27 10:33:03 1999 -+++ gcc/flags.h Tue Mar 30 03:36:49 1999 -@@ -449,6 +449,9 @@ +--- gcc/flags.h.orig Sun Jan 31 09:46:18 1999 ++++ gcc/flags.h Tue Mar 30 13:17:11 1999 +@@ -137,6 +137,10 @@ + + extern int warn_aggregate_return; - /* Do the full regmove optimization pass. */ - extern int flag_regmove; -+ +/* Nonzero means that -Wformat accepts certain non-ANSI formats. */ ++ +extern int flag_format_extensions; - - /* Other basic status info about current function. */ ++ + /* Nonzero if generating code to do profiling. */ + extern int profile_flag; diff --git a/lang/pgcc/files/patch-fc b/lang/pgcc/files/patch-fc index 456579bf4366..a3f44c5e158b 100644 --- a/lang/pgcc/files/patch-fc +++ b/lang/pgcc/files/patch-fc @@ -1,22 +1,21 @@ ---- gcc/toplev.c.orig Wed May 12 17:57:09 1999 -+++ gcc/toplev.c Wed May 12 17:58:25 1999 -@@ -764,6 +764,10 @@ +--- gcc/toplev.c.orig Mon Mar 22 15:23:26 1999 ++++ gcc/toplev.c Tue Mar 30 13:13:44 1999 +@@ -754,6 +754,9 @@ - extern int flag_dump_unnumbered; + int flag_no_ident = 0; +/* Nonzero means that -Wformat accepts certain system-dependent formats. */ -+ +int flag_format_extensions = 0; + - /* Table of supported debugging formats. */ static struct -@@ -951,6 +955,8 @@ + { +@@ -954,6 +957,8 @@ "Generate code to check every memory access" }, {"prefix-function-name", &flag_prefix_function_name, 1, "Add a prefix to all function names" }, + {"format-extensions", &flag_format_extensions, 1, + "-Wformat accepts certain FreeBSD system-dependent formats" }, - {"dump-unnumbered", &flag_dump_unnumbered, 1}, - /* intel1 */ - {"compare-elim", &flag_compare_elim, 1}, + {"dump-unnumbered", &flag_dump_unnumbered, 1, + "Suppress output of instruction numbers and line number notes in debugging dumps"}, + {"instrument-functions", &flag_instrument_function_entry_exit, 1, diff --git a/lang/pgcc/files/patch-va b/lang/pgcc/files/patch-va new file mode 100644 index 000000000000..48040ffa6e96 --- /dev/null +++ b/lang/pgcc/files/patch-va @@ -0,0 +1,20 @@ +--- gcc/Makefile.in.orig Thu Feb 25 12:40:16 1999 ++++ gcc/Makefile.in Mon Mar 1 04:36:40 1999 +@@ -793,7 +793,7 @@ + rm -f config.run + + $(srcdir)/configure: $(srcdir)/configure.in +- cd $(srcdir); autoconf ++ cd $(srcdir); echo "wants to run autoconf" + + # cstamp-h.in controls rebuilding of config.in. + # It is named cstamp-h.in and not stamp-h.in so the mostlyclean rule doesn't +@@ -806,7 +806,7 @@ + # ??? Newer versions have a maintainer mode that may be useful here. + $(srcdir)/config.in: $(srcdir)/cstamp-h.in + $(srcdir)/cstamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h +- cd $(srcdir) && autoheader ++ cd $(srcdir) && echo "want to run autoheader" + @rm -f $(srcdir)/cstamp-h.in + echo timestamp > $(srcdir)/cstamp-h.in + auto-host.h: cstamp-h ; @true |