aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile2
-rw-r--r--lang/egcs/Makefile114
-rw-r--r--lang/egcs/distinfo12
-rw-r--r--lang/egcs/files/alpha-freebsd-elf.h61
-rw-r--r--lang/egcs/files/alpha-freebsd.h443
-rw-r--r--lang/egcs/files/freebsd.h83
-rw-r--r--lang/egcs/files/patch-aa12
-rw-r--r--lang/egcs/files/patch-ab11
-rw-r--r--lang/egcs/files/patch-ac13
-rw-r--r--lang/egcs/files/patch-ad112
-rw-r--r--lang/egcs/files/patch-af87
-rw-r--r--lang/egcs/files/patch-ah67
-rw-r--r--lang/egcs/files/patch-ai45
-rw-r--r--lang/egcs/files/patch-aj14
-rw-r--r--lang/egcs/files/patch-ak49
-rw-r--r--lang/egcs/files/patch-al49
-rw-r--r--lang/egcs/files/patch-am12
-rw-r--r--lang/egcs/files/patch-ba10
-rw-r--r--lang/egcs/files/patch-bb9
-rw-r--r--lang/egcs/files/patch-bc33
-rw-r--r--lang/egcs/files/patch-cccp.c30
-rw-r--r--lang/egcs/files/patch-choose-temp.c45
-rw-r--r--lang/egcs/files/patch-cp::decl.c45
-rw-r--r--lang/egcs/files/patch-cp::ptree.c33
-rw-r--r--lang/egcs/files/patch-dbxout.c27
-rw-r--r--lang/egcs/files/patch-fa233
-rw-r--r--lang/egcs/files/patch-fb12
-rw-r--r--lang/egcs/files/patch-fc22
-rw-r--r--lang/egcs/files/patch-gcc.1207
-rw-r--r--lang/egcs/files/patch-gcc.c234
-rw-r--r--lang/egcs/files/patch-libiberty::Makefile.in8
-rw-r--r--lang/egcs/files/patch-pexecute.c11
-rw-r--r--lang/egcs/files/patch-strerror.c7
-rw-r--r--lang/egcs/files/patch-va30
-rw-r--r--lang/egcs/files/patch-xm-freebsd.h19
-rw-r--r--lang/egcs/pkg-descr15
-rw-r--r--lang/egcs/pkg-plist27
-rw-r--r--lang/gcc30/Makefile146
-rw-r--r--lang/gcc30/distinfo12
-rw-r--r--lang/gcc30/files/patch-ad82
-rw-r--r--lang/gcc30/files/patch-af50
-rw-r--r--lang/gcc30/files/patch-ai31
-rw-r--r--lang/gcc30/files/patch-ak64
-rw-r--r--lang/gcc30/files/patch-ar52
-rw-r--r--lang/gcc30/files/patch-fa309
-rw-r--r--lang/gcc30/files/patch-fb13
-rw-r--r--lang/gcc30/files/patch-fc41
-rw-r--r--lang/gcc30/files/patch-va20
-rw-r--r--lang/gcc30/files/patch-vb11
-rw-r--r--lang/gcc30/pkg-descr3
-rw-r--r--lang/gcc30/pkg-plist19
51 files changed, 0 insertions, 3096 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 42adbaa17006..ff2c4620bb81 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -38,7 +38,6 @@
SUBDIR += drscheme
SUBDIR += dylan
SUBDIR += ecl
- SUBDIR += egcs
SUBDIR += eiffel
SUBDIR += elan
SUBDIR += elisp-manual
@@ -75,7 +74,6 @@
SUBDIR += gcc-ooo
SUBDIR += gcc28
SUBDIR += gcc295
- SUBDIR += gcc30
SUBDIR += gcc32
SUBDIR += gcc33
SUBDIR += gcc34
diff --git a/lang/egcs/Makefile b/lang/egcs/Makefile
deleted file mode 100644
index fe3d579e27c6..000000000000
--- a/lang/egcs/Makefile
+++ /dev/null
@@ -1,114 +0,0 @@
-# ex:ts=8
-# Ports collection makefile for: egcs
-# Version required: 1998-09-14
-# Date created: 9 Jan 1998
-# Whom: John Polstra <jdp@polstra.com>
-#
-# $FreeBSD$
-#
-
-PORTNAME= egcs
-PORTVERSION= 1.1.2
-PORTREVISION= 1
-CATEGORIES= lang
-MASTER_SITES= ${MASTER_SITE_GCC}
-MASTER_SITE_SUBDIR= releases/${PORTNAME}-${PORTVERSION}
-DISTFILES= egcs-core-1.1.2${EXTRACT_SUFX} egcs-g++-1.1.2${EXTRACT_SUFX} \
- egcs-g77-1.1.2${EXTRACT_SUFX} egcs-objc-1.1.2${EXTRACT_SUFX}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= EGCS enhanced version of the GNU compiler suite
-
-USE_BZIP2= yes
-ONLY_FOR_ARCHS= i386
-NO_CDROM= 'old version, not worth the cost in real estate'
-
-INFO= cpp g77 gcc
-
-DEPRECATED= "This port is no longer in use by anything in the ports collection and will be removed in the future. Use a later release of gcc instead"
-EXPIRATION_DATE=2006-12-01
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
-.if ${OSVERSION} >= 500039
-WITHOUT_CPU_CFLAGS= yes
-.endif
-
-EGCS_REV= egcs-2.91.66
-
-.if ${PORTOBJFORMAT} == "elf"
-CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
-.else
-CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
-.endif
-
-PLIST_SUB= EGCS_REV=${EGCS_REV} GNU_HOST=${CONFIGURE_TARGET}
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
-CONFIGURE_ARGS= --with-gnu-as --with-gnu-ld \
- --with-gxx-include-dir=${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/include/g++
-.if defined(WANT_SHAREDLIBS)
-CONFIGURE_ARGS+=--enable-shared
-.endif
-ALL_TARGET= bootstrap
-MAN1= cccp.1 g++.1 g77.1 gcc.1
-
-pre-patch:
- @${MV} ${WRKSRC}/gcc/config/i386/t-freebsd ${WRKSRC}/gcc/config/
- @${MV} ${WRKSRC}/gcc/config/i386/freebsd.h ${WRKSRC}/gcc/config/i386/freebsd-aout.h
- @${MV} ${WRKSRC}/gcc/config/i386/freebsd-elf.h ${WRKSRC}/gcc/config/i386/freebsd.h
- @${CP} ${FILESDIR}/alpha-freebsd-elf.h ${WRKSRC}/gcc/config/alpha/freebsd-elf.h
- @${CP} ${FILESDIR}/alpha-freebsd.h ${WRKSRC}/gcc/config/alpha/freebsd.h
-
-pre-configure:
- @# Keep from running `autoconf' and `autoheader' since we modified
- @# configure.in by patching it.
- @touch ${WRKSRC}/gcc/configure
- @touch ${WRKSRC}/gcc/cstamp-h.in
- @(MAJ=`/sbin/sysctl -n kern.osreldate | ${SED} -e '/.....$$/s///'` ; \
- ${SED} -e "s:__FreeBSD__:__FreeBSD__=$${MAJ}:" ${FILESDIR}/freebsd.h \
- >${WRKSRC}/gcc/config/freebsd.h )
-
-pre-install:
- ${MKDIR} ${PREFIX}/info
-
-post-install:
- @${RM} -f ${PREFIX}/bin/c++
- @${MV} -f ${PREFIX}/bin/c++filt ${PREFIX}/bin/g++filt
- @(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ \
- ${PREFIX}/bin/g++filt ${PREFIX}/bin/g77 ${PREFIX}/bin/gcov \
- ${PREFIX}/bin/protoize ${PREFIX}/bin/unprotoize \
- ${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/cc1 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/cc1obj \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/cc1plus \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/cpp \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/collect2 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/f771 ; \
- do ${STRIP_CMD} $$prog ; \
- done)
- ${LN} -f ${PREFIX}/bin/gcc ${PREFIX}/bin/egcc
- ${LN} -f ${PREFIX}/bin/g++ ${PREFIX}/bin/eg++
- ${MV} ${PREFIX}/lib/libiberty.a \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}
- ${MV} -f ${PREFIX}/lib/libstdc++.a \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}/libstdc++.a
-.if defined(WANT_SHAREDLIBS)
- ${MV} -f ${PREFIX}/lib/libstdc++.so* \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV}
-.endif
- cd ${PREFIX} ;\
- ${FIND} lib/gcc-lib/${CONFIGURE_TARGET}/${EGCS_REV} \
- -type f -o -type l >${WRKDIR}/PLIST.gcc-lib
- ${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
- ${ECHO_CMD} "/Insert PLIST.gcc-lib" >> ${WRKDIR}/ex.script
- ${ECHO_CMD} "d" >> ${WRKDIR}/ex.script
- ${ECHO_CMD} "r ${WRKDIR}/PLIST.gcc-lib" >> ${WRKDIR}/ex.script
- ${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
- ${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-gcc-lib
- cd ${WRKDIR} ; ex < ex.script
-
-.include <bsd.port.post.mk>
diff --git a/lang/egcs/distinfo b/lang/egcs/distinfo
deleted file mode 100644
index 251cc3a185e7..000000000000
--- a/lang/egcs/distinfo
+++ /dev/null
@@ -1,12 +0,0 @@
-MD5 (egcs-core-1.1.2.tar.bz2) = ad12b8eb6014a3f4fd3fe7f9bd6df01d
-SHA256 (egcs-core-1.1.2.tar.bz2) = dcce242ea948c986690a8c8b710b92665fdf310b43e40157b2163ff4ee9f5909
-SIZE (egcs-core-1.1.2.tar.bz2) = 6242306
-MD5 (egcs-g++-1.1.2.tar.bz2) = defecf8027a98c18b0ecbff0ab970243
-SHA256 (egcs-g++-1.1.2.tar.bz2) = fb6de776497dc6a0cf9241ecbb6fffb45ea6b823f95f82a3c510cd7e2321ea38
-SIZE (egcs-g++-1.1.2.tar.bz2) = 1183411
-MD5 (egcs-g77-1.1.2.tar.bz2) = d5e7e645896a549bdbdfebbb01bc3235
-SHA256 (egcs-g77-1.1.2.tar.bz2) = 520740ad34f5f6bbc611b918cde3f7a89f42455767672716e5b68dd11b3a9fb5
-SIZE (egcs-g77-1.1.2.tar.bz2) = 942606
-MD5 (egcs-objc-1.1.2.tar.bz2) = 91e12ee2e12fa866aeec41174bcf1dfe
-SHA256 (egcs-objc-1.1.2.tar.bz2) = e463e1113f2294a914c48f0b6a0537504dec6a5e9038ef2fb5d62300a48c2250
-SIZE (egcs-objc-1.1.2.tar.bz2) = 202397
diff --git a/lang/egcs/files/alpha-freebsd-elf.h b/lang/egcs/files/alpha-freebsd-elf.h
deleted file mode 100644
index 5edb57f05dd0..000000000000
--- a/lang/egcs/files/alpha-freebsd-elf.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/* Definitions of target machine for GNU compiler
- for Alpha FreeBSD systems using ELF.
- Copyright (C) 1998 Free Software Foundation, Inc.
-
-This file is part of GNU CC.
-
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-#undef TARGET_VERSION
-#define TARGET_VERSION fprintf (stderr, " (FreeBSD/alpha ELF)");
-
-#undef SUB_CPP_PREDEFINES
-#define SUB_CPP_PREDEFINES "-D__ELF__"
-
-#undef SUBTARGET_EXTRA_SPECS
-#define SUBTARGET_EXTRA_SPECS \
-{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
-
-#define ELF_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
-
-#undef LINK_SPEC
-#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
- %{O*:-O3} %{!O*:-O1} \
- %{assert*} \
- %{shared:-shared} \
- %{!shared: \
- -dc -dp \
- %{!nostdlib:%{!r*:%{!e*:-e _start}}} \
- %{!static: \
- %{rdynamic:-export-dynamic} \
- %{!dynamic-linker:-dynamic-linker %(elf_dynamic_linker)}} \
- %{static:-static}}"
-
-#undef STARTFILE_SPEC
-#define STARTFILE_SPEC \
- "%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
- %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
-
-/* Provide a ENDFILE_SPEC appropriate for ELF. Here we tack on the
- magical crtend.o file which provides part of the support for
- getting C++ file-scope static object constructed before entering
- `main', followed by a normal ELF "finalizer" file, `crtn.o'. */
-
-#undef ENDFILE_SPEC
-#define ENDFILE_SPEC \
- "%{!shared:crtend.o%s} %{shared:crtendS.o%s}"
-
-/* We support #pragma. */
-#define HANDLE_SYSV_PRAGMA
diff --git a/lang/egcs/files/alpha-freebsd.h b/lang/egcs/files/alpha-freebsd.h
deleted file mode 100644
index e6f81cca503a..000000000000
--- a/lang/egcs/files/alpha-freebsd.h
+++ /dev/null
@@ -1,443 +0,0 @@
-/* Definitions of target machine for GNU compiler,
- for Alpha FreeBSD systems.
- Copyright (C) 1998 Free Software Foundation, Inc.
-
-This file is part of GNU CC.
-
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-/* This is used on Alpha platforms that use the ELF format.
- This was taken from the NetBSD configuration, and modified
- for FreeBSD/alpha by Hidetoshi Shimokawa <simokawa@FreeBSD.ORG> */
-
-
-/* Get generic FreeBSD definitions. */
-#include <freebsd.h>
-
-
-#undef OBJECT_FORMAT_COFF
-#undef EXTENDED_COFF
-#define OBJECT_FORMAT_ELF
-
-/* This is BSD, so it wants DBX format. */
-
-#define DBX_DEBUGGING_INFO
-
-/* This is the char to use for continuation (in case we need to turn
- continuation back on). */
-
-#define DBX_CONTIN_CHAR '?'
-
-#undef ASM_FINAL_SPEC
-
-/* Names to predefine in the preprocessor for this target machine.
- XXX FreeBSD, by convention, shouldn't do __alpha, but lots of applications
- expect it because that's what OSF/1 does. */
-
-#undef TARGET_DEFAULT
-#define TARGET_DEFAULT (MASK_FP | MASK_FPREGS | MASK_GAS)
-
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "\
--D__alpha__ -D__alpha -Acpu(alpha) -Amachine(alpha) " \
-CPP_FBSD_PREDEFINES \
-SUB_CPP_PREDEFINES
-
-/* Make gcc agree with <machine/ansi.h> */
-
-#undef WCHAR_TYPE
-#define WCHAR_TYPE "int"
-
-#undef WCHAR_TYPE_SIZE
-#define WCHAR_TYPE_SIZE 32
-
-/* Output assembler code to FILE to increment profiler label # LABELNO
- for profiling a function entry. Under FreeBSD/Alpha, the assembler does
- nothing special with -pg. */
-
-#undef FUNCTION_PROFILER
-#define FUNCTION_PROFILER(FILE, LABELNO) \
- fputs ("\tjsr $28,_mcount\n", (FILE))
-
-/* Show that we need a GP when profiling. */
-#define TARGET_PROFILING_NEEDS_GP
-
-#undef HAS_INIT_SECTION
-
-/* Provide an ASM_SPEC appropriate for a FreeBSD/alpha target. This differs
- from the generic FreeBSD ASM_SPEC in that no special handling of PIC is
- necessary on the Alpha. */
-
-#undef ASM_SPEC
-#define ASM_SPEC " %| %{mcpu=*:-m%*}"
-
-/* Output at beginning of assembler file. */
-
-#undef ASM_FILE_START
-#define ASM_FILE_START(FILE) \
-{ \
- alpha_write_verstamp (FILE); \
- output_file_directive (FILE, main_input_filename); \
- fprintf (FILE, "\t.version\t\"01.01\"\n"); \
- fprintf (FILE, "\t.set noat\n"); \
-}
-
-#define ASM_OUTPUT_SOURCE_LINE(STREAM, LINE) \
- alpha_output_lineno (STREAM, LINE)
-extern void alpha_output_lineno ();
-
-extern void output_file_directive ();
-
-/* Attach a special .ident directive to the end of the file to identify
- the version of GCC which compiled this code. The format of the
- .ident string is patterned after the ones produced by native svr4
- C compilers. */
-
-#define IDENT_ASM_OP ".ident"
-
-#ifdef IDENTIFY_WITH_IDENT
-#define ASM_IDENTIFY_GCC(FILE) /* nothing */
-#define ASM_IDENTIFY_LANGUAGE(FILE) \
- fprintf(FILE, "\t%s \"GCC (%s) %s\"\n", IDENT_ASM_OP, \
- lang_identify(), version_string)
-#else
-#define ASM_FILE_END(FILE) \
-do { \
- fprintf ((FILE), "\t%s\t\"GCC: (GNU) %s\"\n", \
- IDENT_ASM_OP, version_string); \
- } while (0)
-#endif
-
-/* Allow #sccs in preprocessor. */
-
-#define SCCS_DIRECTIVE
-
-/* Output #ident as a .ident. */
-
-#define ASM_OUTPUT_IDENT(FILE, NAME) \
- fprintf (FILE, "\t%s\t\"%s\"\n", IDENT_ASM_OP, NAME);
-
-/* This is how to allocate empty space in some section. The .zero
- pseudo-op is used for this on most svr4 assemblers. */
-
-#define SKIP_ASM_OP ".zero"
-
-#undef ASM_OUTPUT_SKIP
-#define ASM_OUTPUT_SKIP(FILE,SIZE) \
- fprintf (FILE, "\t%s\t%u\n", SKIP_ASM_OP, (SIZE))
-
-/* Output the label which precedes a jumptable. Note that for all svr4
- systems where we actually generate jumptables (which is to say every
- svr4 target except i386, where we use casesi instead) we put the jump-
- tables into the .rodata section and since other stuff could have been
- put into the .rodata section prior to any given jumptable, we have to
- make sure that the location counter for the .rodata section gets pro-
- perly re-aligned prior to the actual beginning of the jump table. */
-
-#define ALIGN_ASM_OP ".align"
-
-#ifndef ASM_OUTPUT_BEFORE_CASE_LABEL
-#define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE,PREFIX,NUM,TABLE) \
- ASM_OUTPUT_ALIGN ((FILE), 2);
-#endif
-
-#undef ASM_OUTPUT_CASE_LABEL
-#define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,JUMPTABLE) \
- do { \
- ASM_OUTPUT_BEFORE_CASE_LABEL (FILE, PREFIX, NUM, JUMPTABLE) \
- ASM_OUTPUT_INTERNAL_LABEL (FILE, PREFIX, NUM); \
- } while (0)
-
-/* The standard SVR4 assembler seems to require that certain builtin
- library routines (e.g. .udiv) be explicitly declared as .globl
- in each assembly file where they are referenced. */
-
-#define ASM_OUTPUT_EXTERNAL_LIBCALL(FILE, FUN) \
- ASM_GLOBALIZE_LABEL (FILE, XSTR (FUN, 0))
-
-/* This says how to output assembler code to declare an
- uninitialized external linkage data object. Under SVR4,
- the linker seems to want the alignment of data objects
- to depend on their types. We do exactly that here. */
-
-#define COMMON_ASM_OP ".comm"
-
-#undef ASM_OUTPUT_ALIGNED_COMMON
-#define ASM_OUTPUT_ALIGNED_COMMON(FILE, NAME, SIZE, ALIGN) \
-do { \
- fprintf ((FILE), "\t%s\t", COMMON_ASM_OP); \
- assemble_name ((FILE), (NAME)); \
- fprintf ((FILE), ",%u,%u\n", (SIZE), (ALIGN) / BITS_PER_UNIT); \
-} while (0)
-
-/* This says how to output assembler code to declare an
- uninitialized internal linkage data object. Under SVR4,
- the linker seems to want the alignment of data objects
- to depend on their types. We do exactly that here. */
-
-#define LOCAL_ASM_OP ".local"
-
-#undef ASM_OUTPUT_ALIGNED_LOCAL
-#define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN) \
-do { \
- fprintf ((FILE), "\t%s\t", LOCAL_ASM_OP); \
- assemble_name ((FILE), (NAME)); \
- fprintf ((FILE), "\n"); \
- ASM_OUTPUT_ALIGNED_COMMON (FILE, NAME, SIZE, ALIGN); \
-} while (0)
-
-/* This is the pseudo-op used to generate a 64-bit word of data with a
- specific value in some section. */
-
-#define INT_ASM_OP ".quad"
-
-/* This is the pseudo-op used to generate a contiguous sequence of byte
- values from a double-quoted string WITHOUT HAVING A TERMINATING NUL
- AUTOMATICALLY APPENDED. This is the same for most svr4 assemblers. */
-
-#undef ASCII_DATA_ASM_OP
-#define ASCII_DATA_ASM_OP ".ascii"
-
-/* Support const sections and the ctors and dtors sections for g++.
- Note that there appears to be two different ways to support const
- sections at the moment. You can either #define the symbol
- READONLY_DATA_SECTION (giving it some code which switches to the
- readonly data section) or else you can #define the symbols
- EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, SELECT_SECTION, and
- SELECT_RTX_SECTION. We do both here just to be on the safe side. */
-
-#define USE_CONST_SECTION 1
-
-#define CONST_SECTION_ASM_OP ".section\t.rodata"
-
-/* Define the pseudo-ops used to switch to the .ctors and .dtors sections.
-
- Note that we want to give these sections the SHF_WRITE attribute
- because these sections will actually contain data (i.e. tables of
- addresses of functions in the current root executable or shared library
- file) and, in the case of a shared library, the relocatable addresses
- will have to be properly resolved/relocated (and then written into) by
- the dynamic linker when it actually attaches the given shared library
- to the executing process. (Note that on SVR4, you may wish to use the
- `-z text' option to the ELF linker, when building a shared library, as
- an additional check that you are doing everything right. But if you do
- use the `-z text' option when building a shared library, you will get
- errors unless the .ctors and .dtors sections are marked as writable
- via the SHF_WRITE attribute.) */
-
-#define CTORS_SECTION_ASM_OP ".section\t.ctors,\"aw\""
-#define DTORS_SECTION_ASM_OP ".section\t.dtors,\"aw\""
-
-/* On svr4, we *do* have support for the .init and .fini sections, and we
- can put stuff in there to be executed before and after `main'. We let
- crtstuff.c and other files know this by defining the following symbols.
- The definitions say how to change sections to the .init and .fini
- sections. This is the same for all known svr4 assemblers. */
-
-#define INIT_SECTION_ASM_OP ".section\t.init"
-#define FINI_SECTION_ASM_OP ".section\t.fini"
-
-/* A default list of other sections which we might be "in" at any given
- time. For targets that use additional sections (e.g. .tdesc) you
- should override this definition in the target-specific file which
- includes this file. */
-
-#undef EXTRA_SECTIONS
-#define EXTRA_SECTIONS in_const, in_ctors, in_dtors
-
-/* A default list of extra section function definitions. For targets
- that use additional sections (e.g. .tdesc) you should override this
- definition in the target-specific file which includes this file. */
-
-#undef EXTRA_SECTION_FUNCTIONS
-#define EXTRA_SECTION_FUNCTIONS \
- CONST_SECTION_FUNCTION \
- CTORS_SECTION_FUNCTION \
- DTORS_SECTION_FUNCTION
-
-#undef READONLY_DATA_SECTION
-#define READONLY_DATA_SECTION() const_section ()
-
-extern void text_section ();
-
-#define CONST_SECTION_FUNCTION \
-void \
-const_section () \
-{ \
- if (!USE_CONST_SECTION) \
- text_section(); \
- else if (in_section != in_const) \
- { \
- fprintf (asm_out_file, "%s\n", CONST_SECTION_ASM_OP); \
- in_section = in_const; \
- } \
-}
-
-#define CTORS_SECTION_FUNCTION \
-void \
-ctors_section () \
-{ \
- if (in_section != in_ctors) \
- { \
- fprintf (asm_out_file, "%s\n", CTORS_SECTION_ASM_OP); \
- in_section = in_ctors; \
- } \
-}
-
-#define DTORS_SECTION_FUNCTION \
-void \
-dtors_section () \
-{ \
- if (in_section != in_dtors) \
- { \
- fprintf (asm_out_file, "%s\n", DTORS_SECTION_ASM_OP); \
- in_section = in_dtors; \
- } \
-}
-
-/* Switch into a generic section.
- This is currently only used to support section attributes.
-
- We make the section read-only and executable for a function decl,
- read-only for a const data decl, and writable for a non-const data decl. */
-#define ASM_OUTPUT_SECTION_NAME(FILE, DECL, NAME, RELOC) \
- fprintf (FILE, ".section\t%s,\"%s\",@progbits\n", NAME, \
- (DECL) && TREE_CODE (DECL) == FUNCTION_DECL ? "ax" : \
- (DECL) && DECL_READONLY_SECTION (DECL, RELOC) ? "a" : "aw")
-
-
-/* A C statement (sans semicolon) to output an element in the table of
- global constructors. */
-#define ASM_OUTPUT_CONSTRUCTOR(FILE,NAME) \
- do { \
- ctors_section (); \
- fprintf (FILE, "\t%s\t ", INT_ASM_OP); \
- assemble_name (FILE, NAME); \
- fprintf (FILE, "\n"); \
- } while (0)
-
-/* A C statement (sans semicolon) to output an element in the table of
- global destructors. */
-#define ASM_OUTPUT_DESTRUCTOR(FILE,NAME) \
- do { \
- dtors_section (); \
- fprintf (FILE, "\t%s\t ", INT_ASM_OP); \
- assemble_name (FILE, NAME); \
- fprintf (FILE, "\n"); \
- } while (0)
-
-/* A C statement or statements to switch to the appropriate
- section for output of DECL. DECL is either a `VAR_DECL' node
- or a constant of some sort. RELOC indicates whether forming
- the initial value of DECL requires link-time relocations. */
-
-#define SELECT_SECTION(DECL,RELOC) \
-{ \
- if (TREE_CODE (DECL) == STRING_CST) \
- { \
- if (! flag_writable_strings) \
- const_section (); \
- else \
- data_section (); \
- } \
- else if (TREE_CODE (DECL) == VAR_DECL) \
- { \
- if ((flag_pic && RELOC) \
- || !TREE_READONLY (DECL) || TREE_SIDE_EFFECTS (DECL) \
- || !DECL_INITIAL (DECL) \
- || (DECL_INITIAL (DECL) != error_mark_node \
- && !TREE_CONSTANT (DECL_INITIAL (DECL)))) \
- data_section (); \
- else \
- const_section (); \
- } \
- else \
- const_section (); \
-}
-
-/* A C statement or statements to switch to the appropriate
- section for output of RTX in mode MODE. RTX is some kind
- of constant in RTL. The argument MODE is redundant except
- in the case of a `const_int' rtx. Currently, these always
- go into the const section. */
-
-#undef SELECT_RTX_SECTION
-#define SELECT_RTX_SECTION(MODE,RTX) const_section()
-
-/* Define the strings used for the special svr4 .type and .size directives.
- These strings generally do not vary from one system running svr4 to
- another, but if a given system (e.g. m88k running svr) needs to use
- different pseudo-op names for these, they may be overridden in the
- file which includes this one. */
-
-#define TYPE_ASM_OP ".type"
-#define SIZE_ASM_OP ".size"
-
-/* This is how we tell the assembler that two symbols have the same value. */
-
-#define ASM_OUTPUT_DEF(FILE,NAME1,NAME2) \
- do { assemble_name(FILE, NAME1); \
- fputs(" = ", FILE); \
- assemble_name(FILE, NAME2); \
- fputc('\n', FILE); } while (0)
-
-/* A table of bytes codes used by the ASM_OUTPUT_ASCII and
- ASM_OUTPUT_LIMITED_STRING macros. Each byte in the table
- corresponds to a particular byte value [0..255]. For any
- given byte value, if the value in the corresponding table
- position is zero, the given character can be output directly.
- If the table value is 1, the byte must be output as a \ooo
- octal escape. If the tables value is anything else, then the
- byte value should be output as a \ followed by the value
- in the table. Note that we can use standard UN*X escape
- sequences for many control characters, but we don't use
- \a to represent BEL because some svr4 assemblers (e.g. on
- the i386) don't know about that. Also, we don't use \v
- since some versions of gas, such as 2.2 did not accept it. */
-
-#define ESCAPES \
-"\1\1\1\1\1\1\1\1btn\1fr\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\0\0\"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\\\0\0\0\
-\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\
-\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1"
-
-/* Some svr4 assemblers have a limit on the number of characters which
- can appear in the operand of a .string directive. If your assembler
- has such a limitation, you should define STRING_LIMIT to reflect that
- limit. Note that at least some svr4 assemblers have a limit on the
- actual number of bytes in the double-quoted string, and that they
- count each character in an escape sequence as one byte. Thus, an
- escape sequence like \377 would count as four bytes.
-
- If your target assembler doesn't support the .string directive, you
- should define this to zero.
-*/
-
-#define STRING_LIMIT ((unsigned) 256)
-
-#define STRING_ASM_OP ".string"
-
-/*
- * We always use gas here, so we don't worry about ECOFF assembler problems.
- */
-#undef TARGET_GAS
-#define TARGET_GAS (1)
-
-#undef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
diff --git a/lang/egcs/files/freebsd.h b/lang/egcs/files/freebsd.h
deleted file mode 100644
index 5719d55a4b9b..000000000000
--- a/lang/egcs/files/freebsd.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Base configuration file for all FreeBSD targets.
- Copyright (C) 1999 Free Software Foundation, Inc.
-
-This file is part of GNU CC.
-
-GNU CC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU CC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with GNU CC; see the file COPYING. If not, write to
-the Free Software Foundation, 59 Temple Place - Suite 330,
-Boston, MA 02111-1307, USA. */
-
-/* Common FreeBSD configuration.
- All FreeBSD architectures should include this file, which will specify
- their commonalities.
- Adapted from /usr/src/contrib/gcc/config/i386/freebsd.h &
- egcs/gcc/config/i386/freebsd-elf.h version by David O'Brien */
-
-
-/* Don't assume anything about the header files. */
-#undef NO_IMPLICIT_EXTERN_C
-#define NO_IMPLICIT_EXTERN_C
-
-/* 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' /* ignored by ld */ \
- || (CHAR) == 'R')
-
-#undef WORD_SWITCH_TAKES_ARG
-#define WORD_SWITCH_TAKES_ARG(STR) \
- (DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
- || !strcmp (STR, "rpath") || !strcmp (STR, "rpath-link") \
- || !strcmp (STR, "soname") || !strcmp (STR, "defsym") \
- || !strcmp (STR, "assert") || !strcmp (STR, "dynamic-linker"))
-
-
-#define CPP_FBSD_PREDEFINES " -Dunix -D__FreeBSD__ -Asystem(unix) -Asystem(FreeBSD) "
-
-
-/* Code generation parameters. */
-
-/* Don't default to pcc-struct-return, because gcc is the only compiler, and
- we want to retain compatibility with older gcc versions.
- (even though the svr4 ABI for the i386 says that records and unions are
- returned in memory) */
-#undef DEFAULT_PCC_STRUCT_RETURN
-#define DEFAULT_PCC_STRUCT_RETURN 0
-
-/* Ensure we the configuration knows our system correctly so we can link with
- libraries compiled with the native cc. */
-#undef NO_DOLLAR_IN_LABEL
-
-/* Use more efficient ``thunks'' to implement C++ vtables. XXX note that
- this setting is claimed to have a few bugs by the EGCS maintainers. They
- believe the bugs will be worked out in EGCS 1.2. */
-#undef DEFAULT_VTABLE_THUNKS
-#define DEFAULT_VTABLE_THUNKS 1
-
-/* Our malloc can allocte pagesized blocks efficiently. The default size
- of 4072 bytes is not optimal on the i386 nor the Alpha. */
-#undef OBSTACK_CHUNK_SIZE
-#define OBSTACK_CHUNK_SIZE (getpagesize())
-
-
-/* Miscellaneous parameters. */
-
-/* Tell libgcc2.c that FreeBSD targets support atexit(3). */
-#define HAVE_ATEXIT
diff --git a/lang/egcs/files/patch-aa b/lang/egcs/files/patch-aa
deleted file mode 100644
index 9dc2e19279bb..000000000000
--- a/lang/egcs/files/patch-aa
+++ /dev/null
@@ -1,12 +0,0 @@
---- gcc/cpp.texi.orig Mon Aug 11 08:57:05 1997
-+++ gcc/cpp.texi Sat Jan 10 11:59:15 1998
-@@ -1,5 +1,9 @@
- \input texinfo
- @setfilename cpp.info
-+@dircategory The egcs enhanced GNU compiler suite
-+@direntry
-+* cpp: (cpp). The egcs C/C++ preprocessor.
-+@end direntry
- @settitle The C Preprocessor
-
- @ignore
diff --git a/lang/egcs/files/patch-ab b/lang/egcs/files/patch-ab
deleted file mode 100644
index f298fd056742..000000000000
--- a/lang/egcs/files/patch-ab
+++ /dev/null
@@ -1,11 +0,0 @@
---- gcc/f/g77.texi.orig Thu Jun 4 03:41:18 1998
-+++ gcc/f/g77.texi Tue Jun 9 17:52:16 1998
-@@ -150,7 +150,7 @@
-
- @dircategory Programming
- @direntry
--* g77: (g77). The GNU Fortran compiler.
-+* g77: (g77). The EGCS GNU Fortran compiler.
- @end direntry
- @node Top, Copying,, (DIR)
- @top Introduction
diff --git a/lang/egcs/files/patch-ac b/lang/egcs/files/patch-ac
deleted file mode 100644
index 961874c5c315..000000000000
--- a/lang/egcs/files/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
---- gcc/gcc.texi.orig Fri Jan 2 15:38:11 1998
-+++ gcc/gcc.texi Sat Jan 10 11:56:49 1998
-@@ -1,6 +1,10 @@
- >\input texinfo @c -*-texinfo-*-
- @c %**start of header
- @setfilename gcc.info
-+@dircategory The egcs enhanced GNU compiler suite
-+@direntry
-+* gcc: (gcc). The egcs C/C++ compiler.
-+@end direntry
- @c @setfilename usegcc.info
- @c @setfilename portgcc.info
- @c To produce the full manual, use the "gcc.info" setfilename, and
diff --git a/lang/egcs/files/patch-ad b/lang/egcs/files/patch-ad
deleted file mode 100644
index bea070deb344..000000000000
--- a/lang/egcs/files/patch-ad
+++ /dev/null
@@ -1,112 +0,0 @@
---- 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
-@@ -20,6 +20,10 @@
- the Free Software Foundation, 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-+
-+/* 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 */
-
-@@ -35,7 +39,7 @@
- #include "i386/perform.h"
-
- #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 @@
- 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. */
--#define DEFAULT_PCC_STRUCT_RETURN 0
--
--/* Ensure we the configuration knows our system correctly so we can link with
-- libraries compiled with the native cc. */
--#undef NO_DOLLAR_IN_LABEL
-
- /* 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 @@
-
- /* Profiling routines, partially copied from i386/osfrose.h. */
-
--/* Redefine this to use %eax instead of %edx. */
-+/* Tell final.c that we don't need a label passed to mcount. */
-+#define NO_PROFILE_DATA
-+
- #undef FUNCTION_PROFILER
- #define FUNCTION_PROFILER(FILE, LABELNO) \
- { \
- if (flag_pic) \
- { \
-- fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%eax\n", \
-- LPREFIX, (LABELNO)); \
- fprintf (FILE, "\tcall *mcount@GOT(%%ebx)\n"); \
- } \
- else \
- { \
-- fprintf (FILE, "\tmovl $%sP%d,%%eax\n", LPREFIX, (LABELNO)); \
- fprintf (FILE, "\tcall mcount\n"); \
- } \
- }
-@@ -133,6 +128,7 @@
-
- #define TYPE_ASM_OP ".type"
- #define SIZE_ASM_OP ".size"
-+#define SET_ASM_OP ".set"
-
- /* The following macro defines the format used to output the second
- operand of the .type assembler directive. Different svr4 assemblers
-@@ -142,6 +138,12 @@
-
- #define TYPE_OPERAND_FMT "@%s"
-
-+#define HANDLE_SYSV_PRAGMA 1
-+
-+#define ASM_WEAKEN_LABEL(FILE,NAME) \
-+ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
-+ fputc ('\n', FILE); } while (0)
-+
- /* 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 @@
- "%{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/egcs/files/patch-af b/lang/egcs/files/patch-af
deleted file mode 100644
index 218e9ab34c21..000000000000
--- a/lang/egcs/files/patch-af
+++ /dev/null
@@ -1,87 +0,0 @@
---- gcc/config/i386/freebsd.h.orig Mon Mar 1 14:47:32 1999
-+++ gcc/config/i386/freebsd.h Sun Nov 24 22:38:28 2002
-@@ -24,16 +24,6 @@
- #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 +103,19 @@
- : ((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. */
-+#define NO_PROFILE_DATA
-
- #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 +132,16 @@
- #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
-
- #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} */
-
- #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 \
-- "%{!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}}}"
-
- /* Provide a LINK_SPEC appropriate for FreeBSD. Here we provide support
- for the special GCC options -static and -shared, which allow us to
-@@ -181,7 +158,7 @@
- done. */
-
- #undef LINK_SPEC
--#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
-+#define LINK_SPEC "%{shared:-shared} \
- %{!shared: \
- %{!ibcs: \
- %{!static: \
diff --git a/lang/egcs/files/patch-ah b/lang/egcs/files/patch-ah
deleted file mode 100644
index fad69668db7b..000000000000
--- a/lang/egcs/files/patch-ah
+++ /dev/null
@@ -1,67 +0,0 @@
---- gcc/config/i386/i386.c.orig Sat Sep 5 22:52:05 1998
-+++ gcc/config/i386/i386.c Wed Oct 7 17:06:48 1998
-@@ -51,6 +51,11 @@
- #define CHECK_STACK_LIMIT -1
- #endif
-
-+#define PIC_REG_USED \
-+ (flag_pic && (current_function_uses_pic_offset_table \
-+ || current_function_uses_const_pool \
-+ || profile_flag || profile_block_flag))
-+
- /* Type of an operand for ix86_{binary,unary}_operator_ok */
- enum reg_mem
- {
-@@ -1938,13 +1943,11 @@
- char *name ATTRIBUTE_UNUSED;
- {
- rtx xops[2];
-- int pic_reg_used = flag_pic && (current_function_uses_pic_offset_table
-- || current_function_uses_const_pool);
- 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;
-
-@@ -2074,8 +2077,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 = get_frame_size ();
- rtx insn;
- int cfa_offset = INCOMING_FRAME_SP_OFFSET, cfa_store_offset = cfa_offset;
-@@ -2245,8 +2247,6 @@
- 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);
-
- #ifdef NON_SAVING_SETJMP
- if (NON_SAVING_SETJMP && current_function_calls_setjmp)
-@@ -2258,7 +2258,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;
-@@ -2292,8 +2292,7 @@
- register int nregs, limit;
- int offset;
- 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 = get_frame_size ();
-
- /* Compute the number of registers to pop */
diff --git a/lang/egcs/files/patch-ai b/lang/egcs/files/patch-ai
deleted file mode 100644
index f26858c55ca0..000000000000
--- a/lang/egcs/files/patch-ai
+++ /dev/null
@@ -1,45 +0,0 @@
---- gcc/final.c.orig Sat Sep 5 22:52:01 1998
-+++ gcc/final.c Wed Oct 7 17:06:58 1998
-@@ -1635,6 +1637,9 @@
- leaf_renumber_regs (first);
- #endif
-
-+ if (profile_block_flag)
-+ add_bb (file);
-+
- /* The Sun386i and perhaps other machines don't work right
- if the profiling code comes after the prologue. */
- #ifdef PROFILE_BEFORE_PROLOGUE
-@@ -1696,7 +1701,9 @@
- profile_function (file)
- FILE *file;
- {
-+#ifndef NO_PROFILE_DATA
- int align = MIN (BIGGEST_ALIGNMENT, LONG_TYPE_SIZE);
-+#endif /* not NO_PROFILE_DATA */
- #if defined(ASM_OUTPUT_REG_PUSH)
- #if defined(STRUCT_VALUE_INCOMING_REGNUM) || defined(STRUCT_VALUE_REGNUM)
- int sval = current_function_returns_struct;
-@@ -1706,10 +1713,12 @@
- #endif
- #endif /* ASM_OUTPUT_REG_PUSH */
-
-+#ifndef NO_PROFILE_DATA
- data_section ();
- ASM_OUTPUT_ALIGN (file, floor_log2 (align / BITS_PER_UNIT));
- ASM_OUTPUT_INTERNAL_LABEL (file, "LP", profile_label_no);
- assemble_integer (const0_rtx, LONG_TYPE_SIZE / BITS_PER_UNIT, 1);
-+#endif /* not NO_PROFILE_DATA */
-
- function_section (current_function_decl);
-
-@@ -1800,6 +1809,9 @@
- code to restore the stack frame and return to the caller. */
- FUNCTION_EPILOGUE (file, get_frame_size ());
- #endif
-+
-+ if (profile_block_flag)
-+ add_bb (file);
-
- #ifdef SDB_DEBUGGING_INFO
- if (write_symbols == SDB_DEBUG)
diff --git a/lang/egcs/files/patch-aj b/lang/egcs/files/patch-aj
deleted file mode 100644
index 035627fc0908..000000000000
--- a/lang/egcs/files/patch-aj
+++ /dev/null
@@ -1,14 +0,0 @@
---- config.guess.orig Mon Mar 1 14:37:59 1999
-+++ config.guess Sat Mar 13 19:28:44 1999
-@@ -478,9 +478,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
- exit 0 ;;
- *:NetBSD:*:*)
diff --git a/lang/egcs/files/patch-ak b/lang/egcs/files/patch-ak
deleted file mode 100644
index 56794d7caeb5..000000000000
--- a/lang/egcs/files/patch-ak
+++ /dev/null
@@ -1,49 +0,0 @@
---- gcc/configure.orig Sun Mar 14 02:59:02 1999
-+++ gcc/configure Sat Mar 20 00:40:05 1999
-@@ -2395,6 +2395,15 @@
- thread_file='posix'
- fi
- ;;
-+ alpha*-*-freebsd*)
-+ tm_file="${tm_file} freebsd.h alpha/alpha.h alpha/elf.h alpha/freebsd.h alpha/freebsd-elf.h"
-+ xm_file="${xm_file} xm-freebsd.h"
-+ target_cpu_default="MASK_GAS"
-+ tmake_file="t-freebsd alpha/t-crtbe"
-+ xmake_file=none
-+ fixincludes=fixinc.wrap
-+ 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 @@
- # 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/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*)
-- tm_file=i386/freebsd.h
-+ tm_file="i386/i386.h i386/att.h linux.h freebsd.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
- ;;
- i[34567]86-*-netbsd*)
- tm_file=i386/netbsd.h
diff --git a/lang/egcs/files/patch-al b/lang/egcs/files/patch-al
deleted file mode 100644
index 13cd94d70fc0..000000000000
--- a/lang/egcs/files/patch-al
+++ /dev/null
@@ -1,49 +0,0 @@
---- 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 @@
- thread_file='posix'
- fi
- ;;
-+ alpha*-*-freebsd*)
-+ tm_file="${tm_file} freebsd.h alpha/alpha.h alpha/elf.h alpha/freebsd.h alpha/freebsd-elf.h"
-+ xm_file="${xm_file} xm-freebsd.h"
-+ target_cpu_default="MASK_GAS"
-+ tmake_file="t-freebsd alpha/t-crtbe"
-+ xmake_file=none
-+ fixincludes=fixinc.wrap
-+ 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.
- # 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
-- 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*)
-- tm_file=i386/freebsd.h
-+ tm_file="i386/i386.h i386/att.h linux.h freebsd.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
- ;;
- i[[34567]]86-*-netbsd*)
- tm_file=i386/netbsd.h
diff --git a/lang/egcs/files/patch-am b/lang/egcs/files/patch-am
deleted file mode 100644
index f69f6ffa7798..000000000000
--- a/lang/egcs/files/patch-am
+++ /dev/null
@@ -1,12 +0,0 @@
---- 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;
diff --git a/lang/egcs/files/patch-ba b/lang/egcs/files/patch-ba
deleted file mode 100644
index 9ad05014b6e6..000000000000
--- a/lang/egcs/files/patch-ba
+++ /dev/null
@@ -1,10 +0,0 @@
---- libstdc++/configure.in.orig Thu Feb 18 11:40:03 1999
-+++ libstdc++/configure.in Thu Feb 18 11:44:01 1999
-@@ -54,6 +54,7 @@
- *-*-hpux*) frags="${frags} hpux.ml" ;;
- *-*-irix[56]*) frags="${frags} irix5.ml" ;;
- *-*-linux*aout*) ;;
-+ *-*-freebsd*) frags="${frags} freebsd.ml" ;;
- *-*-linux*) frags="${frags} linux.ml" ;;
- *-*-sysv4*) frags="${frags} elf.ml" ;;
- *-*-solaris*) frags="${frags} sol2shm.ml" ;;
diff --git a/lang/egcs/files/patch-bb b/lang/egcs/files/patch-bb
deleted file mode 100644
index 193a278d3c44..000000000000
--- a/lang/egcs/files/patch-bb
+++ /dev/null
@@ -1,9 +0,0 @@
---- libstdc++/config/freebsd.ml.orig Thu Feb 18 11:44:11 1999
-+++ libstdc++/config/freebsd.ml Thu Feb 18 11:44:17 1999
-@@ -0,0 +1,6 @@
-+# Elf with shared libm, so we can link it into the shared libstdc++.
-+
-+LIBS = $(ARLIB) $(SHLIB) $(SHLINK) mshlink
-+SHFLAGS = -Wl,-soname,$(MSHLINK)
-+SHDEPS = -lm
-+DEPLIBS = ../$(SHLIB)
diff --git a/lang/egcs/files/patch-bc b/lang/egcs/files/patch-bc
deleted file mode 100644
index a561227da623..000000000000
--- a/lang/egcs/files/patch-bc
+++ /dev/null
@@ -1,33 +0,0 @@
---- libstdc++/Makefile.in.orig Sat Jul 11 19:20:49 1998
-+++ libstdc++/Makefile.in Sun Mar 14 21:48:39 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 = 290
-
- 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)
-
- mshlink:
-- @$(MAKE) $(MSHLINK) "SHLINK=$(MSHLINK)"
-+ #@$(MAKE) $(MSHLINK) "SHLINK=$(MSHLINK)"
-+ @true
-
- $(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 ; \
- elif [ $$FILE = mshlink ]; then \
-- for FILE in $(MSHLINK) ; do \
-- rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \
-- ln -f -s $(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. ;\
diff --git a/lang/egcs/files/patch-cccp.c b/lang/egcs/files/patch-cccp.c
deleted file mode 100644
index b524049ce1d7..000000000000
--- a/lang/egcs/files/patch-cccp.c
+++ /dev/null
@@ -1,30 +0,0 @@
---- gcc/cccp.c.orig 1999/08/26 09:26:39 1.1.1.2
-+++ gcc/cccp.c 1999/08/27 11:02:42 1.3
-@@ -5096,6 +5096,7 @@
- register struct file_name_map *map;
- register char *from;
-
-+#ifndef FREEBSD_NATIVE
- if (searchptr)
- {
- if (! searchptr->got_name_map)
-@@ -5110,6 +5111,7 @@
- if (! strcmp (map->map_from, from))
- return map->map_to;
- }
-+#endif
-
- from = base_name (filename);
-
-@@ -5124,9 +5126,11 @@
- bcopy (filename, dir, from - filename);
- dir[from - filename] = '\0';
-
-+#ifndef FREEBSD_NATIVE
- for (map = read_name_map (dir); map; map = map->map_next)
- if (! strcmp (map->map_from, from))
- return map->map_to;
-+#endif
- }
-
- return filename;
diff --git a/lang/egcs/files/patch-choose-temp.c b/lang/egcs/files/patch-choose-temp.c
deleted file mode 100644
index f0da4087181e..000000000000
--- a/lang/egcs/files/patch-choose-temp.c
+++ /dev/null
@@ -1,45 +0,0 @@
---- gcc/choose-temp.c.orig 1999/08/26 09:26:40 1.1.1.1
-+++ gcc/choose-temp.c 1999/10/02 21:50:07 1.2
-@@ -22,6 +22,8 @@
- /* This file lives in at least two places: libiberty and gcc.
- Don't change one without the other. */
-
-+/* $from_FreeBSD: src/contrib/gcc/choose-temp.c,v 1.2 1999/10/02 21:50:07 obrien Exp $ */
-+
- #if defined (IN_GCC) || defined (HAVE_CONFIG_H)
- #include "config.h"
- #endif
-@@ -120,13 +122,14 @@
- base = try (getenv ("TMP"), base);
- base = try (getenv ("TEMP"), base);
-
-+ base = try (tmp, base);
-+
- #ifdef P_tmpdir
- base = try (P_tmpdir, base);
- #endif
-
-- /* Try /usr/tmp, then /tmp. */
-+ /* Try /usr/tmp even though it usually doesn't exist on FreeBSD. */
- base = try (usrtmp, base);
-- base = try (tmp, base);
-
- /* If all else fails, use the current directory! */
- if (base == 0)
-@@ -166,13 +169,14 @@
- base = try (getenv ("TMP"), base);
- base = try (getenv ("TEMP"), base);
-
-+ base = try (tmp, base);
-+
- #ifdef P_tmpdir
- base = try (P_tmpdir, base);
- #endif
-
-- /* Try /usr/tmp, then /tmp. */
-+ /* Try /usr/tmp even though it usually doesn't exist on FreeBSD. */
- base = try (usrtmp, base);
-- base = try (tmp, base);
-
- /* If all else fails, use the current directory! */
- if (base == 0)
diff --git a/lang/egcs/files/patch-cp::decl.c b/lang/egcs/files/patch-cp::decl.c
deleted file mode 100644
index fabc992987d7..000000000000
--- a/lang/egcs/files/patch-cp::decl.c
+++ /dev/null
@@ -1,45 +0,0 @@
---- gcc/cp/decl.c.orig 1999/08/26 09:28:46 1.1.1.2
-+++ gcc/cp/decl.c 1999/09/19 10:57:59 1.3
-@@ -19,7 +19,9 @@
- the Free Software Foundation, 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-+/* $from_FreeBSD: src/contrib/gcc/cp/decl.c,v 1.3 1999/09/19 10:57:59 obrien Exp $ */
-
-+
- /* Process declarations and symbol lookup for C front end.
- Also constructs types; the standard scalar types at initialization,
- and structure, union, array and enum types when they are declared. */
-@@ -1493,7 +1495,7 @@
- tree t;
- int i = 0, len;
- fprintf (stderr, " blocks=");
-- fprintf (stderr, HOST_PTR_PRINTF, lvl->blocks);
-+ fprintf (stderr, HOST_PTR_PRINTF, (void *) lvl->blocks);
- fprintf (stderr, " n_incomplete=%d parm_flag=%d keep=%d",
- list_length (lvl->incomplete), lvl->parm_flag, lvl->keep);
- if (lvl->tag_transparent)
-@@ -1606,7 +1608,7 @@
- for (level = stack; level != global_binding_level; level = level->level_chain)
- {
- fprintf (stderr, "binding level ");
-- fprintf (stderr, HOST_PTR_PRINTF, level);
-+ fprintf (stderr, HOST_PTR_PRINTF, (void *) level);
- fprintf (stderr, "\n");
- print_binding_level (level);
- }
-@@ -1617,11 +1619,11 @@
- {
- struct binding_level *b;
- fprintf (stderr, "current_binding_level=");
-- fprintf (stderr, HOST_PTR_PRINTF, current_binding_level);
-+ fprintf (stderr, HOST_PTR_PRINTF, (void *) current_binding_level);
- fprintf (stderr, "\nclass_binding_level=");
-- fprintf (stderr, HOST_PTR_PRINTF, class_binding_level);
-+ fprintf (stderr, HOST_PTR_PRINTF, (void *) class_binding_level);
- fprintf (stderr, "\nglobal_binding_level=");
-- fprintf (stderr, HOST_PTR_PRINTF, global_binding_level);
-+ fprintf (stderr, HOST_PTR_PRINTF, (void *) global_binding_level);
- fprintf (stderr, "\n");
- if (class_binding_level)
- {
diff --git a/lang/egcs/files/patch-cp::ptree.c b/lang/egcs/files/patch-cp::ptree.c
deleted file mode 100644
index acbc3191b42f..000000000000
--- a/lang/egcs/files/patch-cp::ptree.c
+++ /dev/null
@@ -1,33 +0,0 @@
---- gcc/cp/ptree.c.orig 1999/08/26 09:29:01 1.1.1.2
-+++ gcc/cp/ptree.c 1999/09/19 11:00:01 1.3
-@@ -19,7 +19,9 @@
- the Free Software Foundation, 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-+/* $from_FreeBSD: src/contrib/gcc/cp/ptree.c,v 1.3 1999/09/19 11:00:01 obrien Exp $ */
-
-+
- #include "config.h"
- #include "system.h"
- #include "tree.h"
-@@ -46,17 +48,17 @@
- if (DECL_MAIN_VARIANT (node))
- {
- fprintf (file, " decl-main-variant ");
-- fprintf (file, HOST_PTR_PRINTF, DECL_MAIN_VARIANT (node));
-+ fprintf (file, HOST_PTR_PRINTF, (void *) DECL_MAIN_VARIANT (node));
- }
- if (DECL_PENDING_INLINE_INFO (node))
- {
- fprintf (file, " pending-inline-info ");
-- fprintf (file, HOST_PTR_PRINTF, DECL_PENDING_INLINE_INFO (node));
-+ fprintf (file, HOST_PTR_PRINTF, (void *) DECL_PENDING_INLINE_INFO (node));
- }
- if (DECL_TEMPLATE_INFO (node))
- {
- fprintf (file, " template-info ");
-- fprintf (file, HOST_PTR_PRINTF, DECL_TEMPLATE_INFO (node));
-+ fprintf (file, HOST_PTR_PRINTF, (void *) DECL_TEMPLATE_INFO (node));
- }
- }
-
diff --git a/lang/egcs/files/patch-dbxout.c b/lang/egcs/files/patch-dbxout.c
deleted file mode 100644
index 7250792a9041..000000000000
--- a/lang/egcs/files/patch-dbxout.c
+++ /dev/null
@@ -1,27 +0,0 @@
---- gcc/dbxout.c.orig 1999/08/26 09:26:57 1.1.1.2
-+++ gcc/dbxout.c 1999/08/28 07:19:03 1.3
-@@ -2685,7 +2685,12 @@
- {
- #ifdef DBX_FUNCTION_FIRST
- dbxout_really_begin_function (decl);
-+#else
-+#ifdef DBX_CHECK_FUNCTION_FIRST
-+ if (DBX_CHECK_FUNCTION_FIRST)
-+ dbxout_really_begin_function (decl);
- #endif
-+#endif
- }
-
- /* Output dbx data for a function definition.
-@@ -2700,6 +2705,11 @@
- {
- #ifndef DBX_FUNCTION_FIRST
- dbxout_really_begin_function (decl);
-+#else
-+#ifdef DBX_CHECK_FUNCTION_FIRST
-+ if (!(DBX_CHECK_FUNCTION_FIRST))
-+ dbxout_really_begin_function (decl);
-+#endif
- #endif
- dbxout_block (DECL_INITIAL (decl), 0, DECL_ARGUMENTS (decl));
- #ifdef DBX_OUTPUT_FUNCTION_END
diff --git a/lang/egcs/files/patch-fa b/lang/egcs/files/patch-fa
deleted file mode 100644
index d3461af71269..000000000000
--- a/lang/egcs/files/patch-fa
+++ /dev/null
@@ -1,233 +0,0 @@
---- gcc/c-common.c.orig Mon Feb 15 16:40:05 1999
-+++ gcc/c-common.c Sat Dec 2 06:04:12 2000
-@@ -61,7 +61,7 @@
- int, int, int));
- static void init_attributes PROTO((void));
- static void record_function_format PROTO((tree, tree, enum format_type,
-- int, int));
-+ int, int, int));
- static void record_international_format PROTO((tree, tree, int));
-
- /* Keep a stack of if statements. We record the number of compound
-@@ -672,6 +672,7 @@
- enum format_type format_type;
- tree argument;
- int arg_num;
-+ int null_format_ok;
-
- if (TREE_CODE (decl) != FUNCTION_DECL)
- {
-@@ -682,7 +683,7 @@
-
- if (TREE_CODE (format_type_id) != IDENTIFIER_NODE)
- {
-- error ("unrecognized format specifier");
-+ error_with_decl (decl, "unrecognized format specifier");
- continue;
- }
- else
-@@ -690,12 +691,26 @@
- char *p = IDENTIFIER_POINTER (format_type_id);
-
- if (!strcmp (p, "printf") || !strcmp (p, "__printf__"))
-+ {
-+ format_type = printf_format_type;
-+ null_format_ok = 0;
-+ }
-+ else if (!strcmp (p, "printf0") || !strcmp (p, "__printf0__"))
-+ {
- format_type = printf_format_type;
-+ null_format_ok = 1;
-+ }
- else if (!strcmp (p, "scanf") || !strcmp (p, "__scanf__"))
-+ {
- format_type = scanf_format_type;
-+ null_format_ok = 0;
-+ }
- else if (!strcmp (p, "strftime")
- || !strcmp (p, "__strftime__"))
-+ {
- format_type = strftime_format_type;
-+ null_format_ok = 0;
-+ }
- else
- {
- error ("`%s' is an unrecognized format function type", p);
-@@ -766,7 +781,8 @@
-
- record_function_format (DECL_NAME (decl),
- DECL_ASSEMBLER_NAME (decl),
-- format_type, format_num, first_arg_num);
-+ format_type, null_format_ok, format_num,
-+ first_arg_num);
- break;
- }
-
-@@ -1010,6 +1026,11 @@
- } format_char_info;
-
- static format_char_info print_char_table[] = {
-+/* FreeBSD kernel extensions. */
-+ { "D", 1, T_C, T_C, NULL, NULL, NULL, NULL, NULL, "-wp" },
-+ { "b", 1, T_C, T_C, NULL, NULL, NULL, NULL, NULL, "-wp" },
-+ { "rz", 0, NULL, T_I, T_I, T_L, NULL, NULL, NULL, "-wp0 +#" },
-+#define unextended_print_char_table (print_char_table + 3)
- { "di", 0, T_I, T_I, T_I, T_L, T_LL, T_LL, T_ST, "-wp0 +" },
- { "oxX", 0, T_UI, T_UI, T_UI, T_UL, T_ULL, T_ULL, T_ST, "-wp0#" },
- { "u", 0, T_UI, T_UI, T_UI, T_UL, T_ULL, T_ULL, T_ST, "-wp0" },
-@@ -1072,6 +1093,7 @@
- enum format_type format_type; /* type of format (printf, scanf, etc.) */
- int format_num; /* number of format argument */
- int first_arg_num; /* number of first arg (zero for varargs) */
-+ int null_format_ok; /* TRUE if the format string may be NULL */
- } function_format_info;
-
- static function_format_info *function_format_list = NULL;
-@@ -1102,25 +1124,25 @@
- init_function_format_info ()
- {
- record_function_format (get_identifier ("printf"), NULL_TREE,
-- printf_format_type, 1, 2);
-+ printf_format_type, 1, 2, 0);
- record_function_format (get_identifier ("fprintf"), NULL_TREE,
-- printf_format_type, 2, 3);
-+ printf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("sprintf"), NULL_TREE,
-- printf_format_type, 2, 3);
-+ printf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("scanf"), NULL_TREE,
-- scanf_format_type, 1, 2);
-+ scanf_format_type, 1, 2, 0);
- record_function_format (get_identifier ("fscanf"), NULL_TREE,
-- scanf_format_type, 2, 3);
-+ scanf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("sscanf"), NULL_TREE,
-- scanf_format_type, 2, 3);
-+ scanf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("vprintf"), NULL_TREE,
-- printf_format_type, 1, 0);
-+ printf_format_type, 1, 0, 0);
- record_function_format (get_identifier ("vfprintf"), NULL_TREE,
-- printf_format_type, 2, 0);
-+ printf_format_type, 2, 0, 0);
- record_function_format (get_identifier ("vsprintf"), NULL_TREE,
-- printf_format_type, 2, 0);
-+ printf_format_type, 2, 0, 0);
- record_function_format (get_identifier ("strftime"), NULL_TREE,
-- strftime_format_type, 3, 0);
-+ strftime_format_type, 3, 0, 0);
-
- record_international_format (get_identifier ("gettext"), NULL_TREE, 1);
- record_international_format (get_identifier ("dgettext"), NULL_TREE, 2);
-@@ -1138,12 +1160,13 @@
-
- static void
- record_function_format (name, assembler_name, format_type,
-- format_num, first_arg_num)
-+ format_num, first_arg_num, null_format_ok)
- tree name;
- tree assembler_name;
- enum format_type format_type;
- int format_num;
- int first_arg_num;
-+ int null_format_ok;
- {
- function_format_info *info;
-
-@@ -1167,6 +1190,7 @@
- info->format_type = format_type;
- info->format_num = format_num;
- info->first_arg_num = first_arg_num;
-+ info->null_format_ok = null_format_ok;
- }
-
- /* Record information for the names of function that modify the format
-@@ -1314,7 +1338,8 @@
-
- if (integer_zerop (format_tree))
- {
-- warning ("null format string");
-+ if (!info->null_format_ok)
-+ warning ("null format string");
- return;
- }
- if (TREE_CODE (format_tree) != ADDR_EXPR)
-@@ -1485,12 +1510,13 @@
- It will work on most machines, because size_t and int
- have the same mode. But might as well warn anyway,
- since it will fail on other machines. */
-+ /* XXX should we allow unsigned ints here? */
- if ((TYPE_MAIN_VARIANT (TREE_TYPE (cur_param))
- != integer_type_node)
- &&
- (TYPE_MAIN_VARIANT (TREE_TYPE (cur_param))
- != unsigned_type_node))
-- warning ("field width is not type int (arg %d)", arg_num);
-+ warning ("precision is not type int (arg %d)", arg_num);
- }
- }
- else
-@@ -1535,6 +1561,53 @@
- }
- }
- }
-+ if (*format_chars == 'b')
-+ {
-+ /* There should be an int arg to control the string arg. */
-+ if (params == 0)
-+ {
-+ warning (tfaff);
-+ return;
-+ }
-+ if (info->first_arg_num != 0)
-+ {
-+ cur_param = TREE_VALUE (params);
-+ params = TREE_CHAIN (params);
-+ ++arg_num;
-+ if ((TYPE_MAIN_VARIANT (TREE_TYPE (cur_param))
-+ != integer_type_node)
-+ &&
-+ (TYPE_MAIN_VARIANT (TREE_TYPE (cur_param))
-+ != unsigned_type_node))
-+ {
-+ warning ("bitmap is not type int (arg %d)", arg_num);
-+ }
-+ }
-+ }
-+ if (*format_chars == 'D')
-+ {
-+ /* There should be an unsigned char * arg before the string arg. */
-+ if (params == 0)
-+ {
-+ warning (tfaff);
-+ return;
-+ }
-+ if (info->first_arg_num != 0)
-+ {
-+ cur_param = TREE_VALUE (params);
-+ params = TREE_CHAIN (params);
-+ ++arg_num;
-+ cur_type = TREE_TYPE (cur_param);
-+ if (TREE_CODE (cur_type) != POINTER_TYPE
-+ || TYPE_MAIN_VARIANT (TREE_TYPE (cur_type))
-+ != unsigned_char_type_node)
-+ {
-+ warning ("ethernet address is not type unsigned char *"
-+ " (arg %d)",
-+ arg_num);
-+ }
-+ }
-+ }
-
- aflag = 0;
-
-@@ -1604,7 +1677,8 @@
- switch (info->format_type)
- {
- case printf_format_type:
-- fci = print_char_table;
-+ fci = flag_format_extensions ? print_char_table
-+ : unextended_print_char_table;
- break;
- case scanf_format_type:
- fci = scan_char_table;
diff --git a/lang/egcs/files/patch-fb b/lang/egcs/files/patch-fb
deleted file mode 100644
index b86da95cfa90..000000000000
--- a/lang/egcs/files/patch-fb
+++ /dev/null
@@ -1,12 +0,0 @@
---- 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 @@
-
- /* 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. */
-
diff --git a/lang/egcs/files/patch-fc b/lang/egcs/files/patch-fc
deleted file mode 100644
index 24fefb020007..000000000000
--- a/lang/egcs/files/patch-fc
+++ /dev/null
@@ -1,22 +0,0 @@
---- gcc/toplev.c.orig Sat Feb 27 10:33:02 1999
-+++ gcc/toplev.c Tue Mar 30 03:37:57 1999
-@@ -728,6 +728,10 @@
-
- extern int flag_dump_unnumbered;
-
-+/* Nonzero means that -Wformat accepts certain system-dependent formats. */
-+
-+int flag_format_extensions = 0;
-+
-
- /* Table of supported debugging formats. */
- static struct
-@@ -915,6 +919,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}
- };
-
diff --git a/lang/egcs/files/patch-gcc.1 b/lang/egcs/files/patch-gcc.1
deleted file mode 100644
index ebe5610bf0c9..000000000000
--- a/lang/egcs/files/patch-gcc.1
+++ /dev/null
@@ -1,207 +0,0 @@
---- gcc/gcc.1.orig 1999/08/26 09:27:23 1.1.1.2
-+++ gcc/gcc.1 1999/09/19 09:00:24 1.14
-@@ -1,3 +1,4 @@
-+.\" $from_FreeBSD: src/contrib/gcc/gcc.1,v 1.14 1999/09/19 09:00:24 obrien Exp $
- .\" Copyright (c) 1991, 1992, 1993, 1994 Free Software Foundation -*-Text-*-
- .\" See section COPYING for conditions for redistribution
- .\"
-@@ -264,6 +265,8 @@
- \-O
- \-O2
- \-O3
-+\-O0
-+\-Os
- .TP
- .B Preprocessor Options
- .RI \-A assertion
-@@ -444,10 +447,25 @@
- .Sp
- .I i386 Options
- .br
-+\-m386
- \-m486
-+\-mpentium
-+\-mpentiumpro
- \-mno\-486
-+\-mcpu=\fIcpu type\fP
-+\-march=\fIcpu type\fP
- \-msoft\-float
-+\-mrtd
-+\-mregparm
-+\-msvr3\-shlib
-+\-mno\-ieee\-fp
- \-mno\-fp\-ret\-in\-387
-+\-mfancy\-math\-387
-+\-mno\-wide\-multiply
-+\-mdebug\-addr
-+\-mno\-move
-+\-mprofiler\-epilogue
-+\-reg\-alloc=LIST
- .Sp
- .I HPPA Options
- .br
-@@ -520,6 +538,16 @@
- \-fverbose\-asm
- .ad b
- .hy 1
-+.SH FreeBSD SPECIFIC OPTIONS
-+.TP
-+.BI "\-pthread"
-+Link a user-threaded process against libc_r instead of libc. Objects linked
-+into user-threaded processes should be compiled with -D_THREAD_SAFE.
-+.TP
-+.BI "\-kthread"
-+Link a kernel-threaded process against libpthread in addition to libc.
-+Objects linked into kernel-threaded processes should be compiled with
-+-D_THREAD_SAFE.
- .SH OVERALL OPTIONS
- .TP
- .BI "\-x " "language"
-@@ -1202,13 +1230,17 @@
- .B \-M\c
- \&\|' but the output mentions only the user header files
- included with `\|\c
--.B #include "\c
-+.B
-+#include "\c
- .I file\c
-+.B
- \&"\c
- \&\|'. System header files
- included with `\|\c
--.B #include <\c
-+.B
-+#include <\c
- .I file\c
-+.B
- \&>\c
- \&\|' are omitted.
- .TP
-@@ -1485,8 +1517,10 @@
- \&"\c
- \&\|';
- they are not searched for `\|\c
--.B #include <\c
-+.B
-+#include <\c
- .I file\c
-+.B
- \&>\c
- \&\|'.
- .Sp
-@@ -2000,7 +2034,7 @@
- .B \-Wnested-externs
- Warn if an \c
- .B extern\c
--\& declaration is encountered within an function.
-+\& declaration is encountered within a function.
- .TP
- .B \-Wenum\-clash
- Warn about conversion between different enumeration types (C++ only).
-@@ -2432,6 +2466,12 @@
- does, along with also turning on
- .B \-finline\-functions.
- .TP
-+.B \-Os
-+Optimize for size. This enables all
-+.B \-O2
-+optimizations that do not typically increase code size. It also performs
-+further optimizations designed to reduce code size.
-+.TP
- .B \-O0
- Do not optimize.
- .Sp
-@@ -2981,17 +3021,17 @@
- .B \-mcypress
- .TP
- .B \-msupersparc
--These two options select the processor for which the code is optimised.
-+These two options select the processor for which the code is optimized.
- .Sp
- With
- .B \-mcypress
--(the default), the compiler optimises code for the Cypress CY7C602 chip, as
-+(the default), the compiler optimizes code for the Cypress CY7C602 chip, as
- used in the SparcStation/SparcServer 3xx series. This is also appropriate for
- the older SparcStation 1, 2, IPX etc.
- .Sp
- With
- .B \-msupersparc
--the compiler optimises code for the SuperSparc cpu, as used in the SparcStation
-+the compiler optimizes code for the SuperSparc cpu, as used in the SparcStation
- 10, 1000 and 2000 series. This flag also enables use of the full SPARC v8
- instruction set.
- .PP
-@@ -3570,12 +3610,51 @@
- These `\|\c
- .B \-m\c
- \&\|' options are defined for the Intel 80386 family of computers:
-+.TP
- .B \-m486
- .TP
- .B \-mno\-486
- Control whether or not code is optimized for a 486 instead of an
- 386. Code generated for a 486 will run on a 386 and vice versa.
- .TP
-+.B \-mpentium
-+Synonym for
-+.B \-mcpu=pentium
-+.TP
-+.B \-mpentiumpro
-+Synonym for
-+.B \-mcpu=pentiumpro
-+.TP
-+.B \-mcpu=\fIcpu type\fP
-+Assume the defaults for the machine type CPU TYPE when scheduling instructions.
-+The choices for CPU TYPE are:
-+.B i386,
-+.B i486,
-+.B i586
-+(pentium),
-+.B pentium,
-+.B i686
-+(pentiumpro), and
-+.B pentiumpro.
-+While picking a specific CPU TYPE will schedule things appropriately for that
-+particular chip, the compiler will not generate any code that does not run on
-+the i386 without the
-+.B \-march=\fIcpu type\fP
-+option being used.
-+.TP
-+.B \-march=\fIcpu type\fP
-+Generate instructions for the machine type CPU TYPE. The choices for CPU TYPE
-+are:
-+.B i386,
-+.B i486,
-+.B pentium,
-+and
-+.B pentiumpro.
-+Specifying
-+.B \-march=\fIcpu type\fP
-+implies
-+.B \-mcpu=\fIcpu type\fP.
-+.TP
- .B \-msoft\-float
- Generate output containing library calls for floating point.
- .I Warning:
-@@ -3606,6 +3685,11 @@
- .B \-mno-fp-ret-in-387\c
- \&\|' causes such values to be returned
- in ordinary CPU registers instead.
-+.TP
-+.B \-mprofiler-epilogue
-+.TP
-+.B \-mno-profiler-epilogue
-+Generate extra code to write profile information for function exits.
- .PP
- These `\|\c
- .B \-m\c
-@@ -4141,7 +4225,7 @@
- .B /tmp\c
- \&).
- .SH "SEE ALSO"
--cpp(1), as(1), ld(1), gdb(1), adb(1), dbx(1), sdb(1).
-+as(1), cpp(1), gdb(1), ld(1)
- .br
- .RB "`\|" gcc "\|', `\|" cpp \|',
- .RB "`\|" as "\|', `\|" ld \|',
diff --git a/lang/egcs/files/patch-gcc.c b/lang/egcs/files/patch-gcc.c
deleted file mode 100644
index f361addd9cc7..000000000000
--- a/lang/egcs/files/patch-gcc.c
+++ /dev/null
@@ -1,234 +0,0 @@
---- gcc/gcc.c.orig 1999/08/26 09:27:23 1.1.1.3
-+++ gcc/gcc.c 1999/09/13 15:50:16 1.10
-@@ -21,6 +21,8 @@
- This paragraph is here to try to keep Sun CC from dying.
- The number of chars here seems crucial!!!! */
-
-+/* $from_FreeBSD: src/contrib/gcc/gcc.c,v 1.10 1999/09/13 15:50:16 bde Exp $ */
-+
- /* This program is the user interface to the C compiler and possibly to
- other compilers. It is used because compilation is a complicated procedure
- which involves running several programs and passing temporary files between
-@@ -2401,6 +2403,9 @@
- /* Gives value to pass as "warn" to add_prefix for standard prefixes. */
- static int *warn_std_ptr = 0;
-
-+#if defined(FREEBSD_NATIVE) && defined(__i386__)
-+static int objformat_aout = 0; /* ELF by default */
-+#endif
-
- #if defined(HAVE_OBJECT_SUFFIX) || defined(HAVE_EXECUTABLE_SUFFIX)
-
-@@ -2712,6 +2717,39 @@
- }
- }
-
-+#if defined(FREEBSD_NATIVE) && defined(__i386__)
-+ {
-+ /* first hint is /etc/objformat */
-+ FILE *fp = fopen("/etc/objformat", "r");
-+ if (fp) {
-+ char buf[1024];
-+ buf[1023] = '\0';
-+ while (fgets(buf, sizeof(buf) - 1, fp) != NULL) {
-+ i = strlen(buf);
-+ if (buf[i - 1] == '\n')
-+ buf[i - 1] = '\0';
-+ if (strcmp(buf, "OBJFORMAT=aout") == 0)
-+ objformat_aout = 1;
-+ else if (strcmp(buf, "OBJFORMAT=elf") == 0)
-+ objformat_aout = 0;
-+ else
-+ fprintf(stderr, "Unrecognized line in /etc/objformat: %s\n", buf);
-+ }
-+ fclose(fp);
-+ }
-+ /* but the user $OBJFORMAT overrides system default */
-+ temp = getenv("OBJFORMAT");
-+ if (temp) {
-+ if (strcmp(temp, "aout") == 0)
-+ objformat_aout = 1;
-+ else if (strcmp(temp, "elf") == 0)
-+ objformat_aout = 0;
-+ else
-+ fprintf(stderr, "Unrecognized value of $OBJFORMAT: %s\n", temp);
-+ }
-+ }
-+#endif
-+
- /* Convert new-style -- options to old-style. */
- translate_options (&argc, &argv);
-
-@@ -2726,6 +2764,19 @@
-
- for (i = 1; i < argc; i++)
- {
-+#if defined(FREEBSD_NATIVE) && defined(__i386__)
-+ /* .. and command line args override all */
-+ if (strcmp (argv[i], "-aout") == 0)
-+ {
-+ objformat_aout = 1;
-+ continue;
-+ }
-+ else if (strcmp (argv[i], "-elf") == 0)
-+ {
-+ objformat_aout = 0;
-+ continue;
-+ }
-+#endif
- if (! strcmp (argv[i], "-dumpspecs"))
- {
- struct spec_list *sl;
-@@ -3049,6 +3100,23 @@
- (such as cpp) rather than those of the host system. */
- /* Use 2 as fourth arg meaning try just the machine as a suffix,
- as well as trying the machine and the version. */
-+#ifdef FREEBSD_NATIVE
-+#if defined(__i386__)
-+ if (objformat_aout) {
-+ n_switches++; /* add implied -maout */
-+ add_prefix (&exec_prefixes, "/usr/libexec/aout/", "BINUTILS",
-+ 0, 0, NULL_PTR);
-+ } else
-+ add_prefix (&exec_prefixes, "/usr/libexec/elf/", "BINUTILS",
-+ 0, 0, NULL_PTR);
-+#endif
-+ add_prefix (&exec_prefixes, "/usr/libexec", "GCC",
-+ 0, 0, warn_std_ptr);
-+ add_prefix (&exec_prefixes, "/usr/bin", "GCC",
-+ 0, 0, warn_std_ptr);
-+ add_prefix (&startfile_prefixes, "/usr/libdata/gcc/", "BINUTILS",
-+ 0, 0, warn_std_ptr);
-+#else /* not FREEBSD_NATIVE */
- #ifndef OS2
- add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS",
- 0, 2, warn_std_ptr);
-@@ -3060,6 +3128,7 @@
- 0, 1, warn_std_ptr);
- add_prefix (&startfile_prefixes, standard_exec_prefix_1, "BINUTILS",
- 0, 1, warn_std_ptr);
-+#endif /* FREEBSD_NATIVE */
-
- tooldir_prefix = concat (tooldir_base_prefix, spec_machine,
- dir_separator_str, NULL_PTR);
-@@ -3094,12 +3163,14 @@
- dir_separator_str, tooldir_prefix, NULL_PTR);
- }
-
-+#ifndef FREEBSD_NATIVE
- add_prefix (&exec_prefixes,
- concat (tooldir_prefix, "bin", dir_separator_str, NULL_PTR),
- "BINUTILS", 0, 0, NULL_PTR);
- add_prefix (&startfile_prefixes,
- concat (tooldir_prefix, "lib", dir_separator_str, NULL_PTR),
- "BINUTILS", 0, 0, NULL_PTR);
-+#endif /* FREEBSD_NATIVE */
-
- /* More prefixes are enabled in main, after we read the specs file
- and determine whether this is cross-compilation or not. */
-@@ -3118,6 +3189,19 @@
- to the copy in the vector of switches.
- Store all the infiles in their vector. */
-
-+#if defined(FREEBSD_NATIVE) && defined(__i386__)
-+ if (objformat_aout == 1) {
-+ switches[n_switches].part1 = "maout";
-+ switches[n_switches].args = 0;
-+ switches[n_switches].live_cond = 0;
-+ switches[n_switches].valid = 0;
-+ n_switches++;
-+ putenv("OBJFORMAT=aout");
-+ } else {
-+ putenv("OBJFORMAT=elf");
-+ }
-+#endif
-+
- for (i = 1; i < argc; i++)
- {
- /* Just skip the switches that were handled by the preceding loop. */
-@@ -3137,6 +3221,12 @@
- ;
- else if (! strcmp (argv[i], "-print-multi-directory"))
- ;
-+#if defined(FREEBSD_NATIVE) && defined(__i386__)
-+ else if (! strcmp (argv[i], "-aout"))
-+ ;
-+ else if (! strcmp (argv[i], "-elf"))
-+ ;
-+#endif
- else if (strcmp (argv[i], "-fhelp") == 0)
- {
- if (verbose_flag)
-@@ -4592,6 +4682,7 @@
- *cp++ = '.';
- *cp = '\0';
-
-+#ifndef FREEBSD_NATIVE
- /* Exclude directories that the linker is known to search. */
- if (linker
- && ((cp - path == 6
-@@ -4602,6 +4693,7 @@
- dir_separator_str, "lib",
- dir_separator_str, ".", NULL_PTR)) == 0)))
- return 0;
-+#endif /* FREEBSD_NATIVE */
-
- return (stat (path, &st) >= 0 && S_ISDIR (st.st_mode));
- }
-@@ -4775,9 +4867,13 @@
-
- /* Read specs from a file if there is one. */
-
-+#ifndef FREEBSD_NATIVE
- machine_suffix = concat (spec_machine, dir_separator_str,
- spec_version, dir_separator_str, NULL_PTR);
- just_machine_suffix = concat (spec_machine, dir_separator_str, NULL_PTR);
-+#else /* FREEBSD_NATIVE */
-+ just_machine_suffix = "";
-+#endif /* FREEBSD_NATIVE */
-
- specs_file = find_a_file (&startfile_prefixes, "specs", R_OK);
- /* Read the specs file unless it is a default one. */
-@@ -4857,6 +4953,7 @@
- NULL_PTR, 0, 0, NULL_PTR);
- }
-
-+#ifndef FREEBSD_NATIVE
- add_prefix (&startfile_prefixes, standard_startfile_prefix_1,
- "BINUTILS", 0, 0, NULL_PTR);
- add_prefix (&startfile_prefixes, standard_startfile_prefix_2,
-@@ -4864,6 +4961,7 @@
- #if 0 /* Can cause surprises, and one can use -B./ instead. */
- add_prefix (&startfile_prefixes, "./", NULL_PTR, 0, 1, NULL_PTR);
- #endif
-+#endif /* FREEBSD_NATIVE */
- }
- else
- {
-@@ -4947,7 +5045,7 @@
-
- if (! verbose_flag)
- {
-- printf ("\nReport bugs to egcs-bugs@egcs.cygnus.com.\n");
-+ printf ("\nReport bugs to egcs-bugs@cygnus.com.\n");
- printf ("Please see the file BUGS (included with the sources) first.\n");
-
- exit (0);
-@@ -4981,7 +5079,7 @@
- }
-
- if (n_infiles == added_libraries)
-- fatal ("No input files");
-+ fatal ("No input files specified");
-
- /* Make a place to record the compiler output file names
- that correspond to the input files. */
-@@ -5137,7 +5235,7 @@
-
- if (print_help_list)
- {
-- printf ("\nReport bugs to egcs-bugs@egcs.cygnus.com.\n");
-+ printf ("\nReport bugs to egcs-bugs@cygnus.com.\n");
- printf ("Please see the file BUGS (included with the sources) first.\n");
- }
-
diff --git a/lang/egcs/files/patch-libiberty::Makefile.in b/lang/egcs/files/patch-libiberty::Makefile.in
deleted file mode 100644
index d8e34191a3ce..000000000000
--- a/lang/egcs/files/patch-libiberty::Makefile.in
+++ /dev/null
@@ -1,8 +0,0 @@
---- libiberty/Makefile.in.orig Sat May 23 15:32:53 1998
-+++ libiberty/Makefile.in Sun Nov 24 14:17:03 2002
-@@ -120 +120 @@
-- strrchr.c strsignal.c strstr.c strtod.c strtol.c strtoul.c \
-+ strrchr.c strstr.c strtod.c strtol.c strtoul.c \
-@@ -128 +128 @@
-- strsignal.o xatexit.o xexit.o xmalloc.o xstrdup.o xstrerror.o
-+ xatexit.o xexit.o xmalloc.o xstrdup.o xstrerror.o
diff --git a/lang/egcs/files/patch-pexecute.c b/lang/egcs/files/patch-pexecute.c
deleted file mode 100644
index eb4080b7e3c2..000000000000
--- a/lang/egcs/files/patch-pexecute.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- gcc/pexecute.c.orig 1999/08/26 09:28:02 1.1.1.1
-+++ gcc/pexecute.c 1999/08/29 23:46:20 1.2
-@@ -739,7 +739,7 @@
- #else
- fprintf (stderr, ": %s\n", xstrerror (errno));
- #endif
-- exit (-1);
-+ _exit (1);
- /* NOTREACHED */
- return 0;
-
diff --git a/lang/egcs/files/patch-strerror.c b/lang/egcs/files/patch-strerror.c
deleted file mode 100644
index 85864e2e14a3..000000000000
--- a/lang/egcs/files/patch-strerror.c
+++ /dev/null
@@ -1,7 +0,0 @@
---- libiberty/strerror.c.orig Fri May 15 16:42:41 1998
-+++ libiberty/strerror.c Sun Nov 24 14:25:18 2002
-@@ -465,2 +465,2 @@
--extern int sys_nerr;
--extern char *sys_errlist[];
-+/* extern int sys_nerr; declared just fine by stdio.h, thank you very much */
-+/* extern char *sys_errlist[]; declared just fine by stdio.h, thank you very much */
diff --git a/lang/egcs/files/patch-va b/lang/egcs/files/patch-va
deleted file mode 100644
index c4d5b315bb30..000000000000
--- a/lang/egcs/files/patch-va
+++ /dev/null
@@ -1,30 +0,0 @@
---- gcc/Makefile.in.orig Sun Mar 7 16:22:20 1999
-+++ gcc/Makefile.in Sun Nov 24 23:51:04 2002
-@@ -768,7 +768,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
-@@ -781,7 +781,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
-@@ -1914,7 +1914,8 @@
- SYSCALLS.c.X: $(srcdir)/sys-types.h $(srcdir)/sys-protos.h $(GCC_PASSES) \
- stmp-int-hdrs
- -rm -f SYSCALLS.c tmp-SYSCALLS.s
-- cat $(srcdir)/sys-types.h $(srcdir)/sys-protos.h > SYSCALLS.c
-+ echo "#define __NO_GNUC_VA_LIST 1" > SYSCALLS.c
-+ cat $(srcdir)/sys-types.h $(srcdir)/sys-protos.h >> SYSCALLS.c
- $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- -aux-info $@ -S -o tmp-SYSCALLS.s SYSCALLS.c
- -rm -f SYSCALLS.c tmp-SYSCALLS.s
diff --git a/lang/egcs/files/patch-xm-freebsd.h b/lang/egcs/files/patch-xm-freebsd.h
deleted file mode 100644
index a04d032b0094..000000000000
--- a/lang/egcs/files/patch-xm-freebsd.h
+++ /dev/null
@@ -1,19 +0,0 @@
---- gcc/config/xm-freebsd.h.orig 1999/08/26 09:29:27 1.1.1.2
-+++ gcc/config/xm-freebsd.h 1999/08/30 10:12:33 1.4
-@@ -22,3 +22,16 @@
- running FreeBSD. This file should not be specified as $xm_file itself;
- instead $xm_file should be CPU/xm-freebsd.h, which should include both
- CPU/xm-CPU.h and this file xm-freebsd.h. */
-+
-+#ifndef HAVE_ATEXIT
-+#define HAVE_ATEXIT
-+#endif
-+
-+/* Tell gcc and collect2 that FreeBSD targets support putenv(3). */
-+#define HAVE_PUTENV
-+
-+/* We have _sys_siglist, but the declaration in <signal.h> conflicts with
-+ the declarations in collect2.c and mips-tfile.c, so disable the declarations
-+ in those files. */
-+
-+#define SYS_SIGLIST_DECLARED
diff --git a/lang/egcs/pkg-descr b/lang/egcs/pkg-descr
deleted file mode 100644
index 80ef40f43c18..000000000000
--- a/lang/egcs/pkg-descr
+++ /dev/null
@@ -1,15 +0,0 @@
-Egcs (pronounced "eggs") is an enhanced version of the GNU compiler
-suite, including gcc, g++, and g77. Egcs is based on a recent
-snapshot of the gcc-2.8 development sources; it contains nearly
-all of the new features found in gcc-2.8. Egcs also contains many
-improvements and features not found in gcc-2.7 and even the soon to be
-released gcc-2.8 compilers. C++ support, and in particular template
-support, is vastly improved over gcc-2.7.
-
-Beware: This port installs new versions of "gcc", "g++", "c++" and
-so forth into the "${PREFIX}/bin" directory. Mind your PATHs if you
-don't want to use this compiler by default.
-
-- John Polstra <jdp@polstra.com>
-
-WWW: http://gcc.gnu.org/
diff --git a/lang/egcs/pkg-plist b/lang/egcs/pkg-plist
deleted file mode 100644
index decd87fb3d41..000000000000
--- a/lang/egcs/pkg-plist
+++ /dev/null
@@ -1,27 +0,0 @@
-@comment $Id: PLIST,v 1.21 1998/12/26 20:10:02 obrien Exp $
-bin/g++filt
-bin/g++
-bin/eg++
-bin/g77
-bin/gcc
-bin/egcc
-bin/gcov
-bin/%%GNU_HOST%%-gcc
-bin/protoize
-bin/unprotoize
-%%GNU_HOST%%/include/_G_config.h
-%%GNU_HOST%%/include/assert.h
-%%GNU_HOST%%/lib/libiberty.a
-@comment Insert PLIST.gcc-lib here
-@comment -=[ begin PLIST.gcc-lib ]=-
-@comment -=[ end PLIST.gcc-lib ]=-
-@dirrm %%GNU_HOST%%/include
-@dirrm %%GNU_HOST%%/lib
-@dirrm %%GNU_HOST%%
-@dirrm lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/objc
-@dirrm lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++/std
-@dirrm lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include/g++
-@dirrm lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%/include
-@dirrm lib/gcc-lib/%%GNU_HOST%%/%%EGCS_REV%%
-@dirrm lib/gcc-lib/%%GNU_HOST%%
-@dirrm lib/gcc-lib
diff --git a/lang/gcc30/Makefile b/lang/gcc30/Makefile
deleted file mode 100644
index f653f5936a0f..000000000000
--- a/lang/gcc30/Makefile
+++ /dev/null
@@ -1,146 +0,0 @@
-# ex:ts=8
-# Ports collection makefile for: egcs
-# Date created: 9 Jan 1998
-# Whom: John Polstra <jdp@polstra.com>
-#
-# $FreeBSD$
-#
-
-PORTNAME= gcc30
-PORTVERSION= 3.0.4
-PORTREVISION= 1
-CATEGORIES= lang
-MASTER_SITES= ${MASTER_SITE_GCC}
-MASTER_SITE_SUBDIR= releases/gcc-${GCC_REV}
-DISTFILES= gcc-core-${GCC_REV}${EXTRACT_SUFX} \
- gcc-g++-${GCC_REV}${EXTRACT_SUFX} \
- gcc-g77-${GCC_REV}${EXTRACT_SUFX} \
- gcc-objc-${GCC_REV}${EXTRACT_SUFX}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= GNU Compiler Collection 3.0.
-
-DEPRECATED= "This port is no longer in use by anything in the ports collection and will be removed in the future. Use a later release instead."
-EXPIRATION_DATE=2006-12-01
-
-NOT_FOR_ARCHS= amd64 sparc64 ia64
-LATEST_LINK= gcc30
-
-USE_BZIP2= yes
-INFO= cpp cppinternals g77 gcc
-
-PATCH_WRKSRC= ${SRCDIR}
-CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500039
-WITHOUT_CPU_CFLAGS= yes
-.endif
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile"
-.endif
-
-.if ${PORTOBJFORMAT} == "elf"
-CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
-.else
-CONFIGURE_TARGET= ${ARCH}-portbld-freebsdaout${OSREL}
-.endif
-
-GCC_REV= ${PORTVERSION:C/\.0$//}
-SRCDIR= ${WRKDIR}/gcc-${GCC_REV}
-WRKSRC= ${WRKDIR}/build
-TARGLIB= ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}
-PLIST_SUB= GCC_REV=${GCC_REV} GNU_HOST=${CONFIGURE_TARGET}
-GNU_CONFIGURE= yes
-USE_GMAKE= yes
-USE_BISON= yes
-CONFIGURE_ARGS= --disable-nls --with-gnu-as --with-gnu-ld \
- --with-gxx-include-dir=${TARGLIB}/include/g++
-CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
-.if defined(WANT_SHAREDLIBS)
-CONFIGURE_ARGS+=--enable-shared
-.else
-CONFIGURE_ARGS+=--disable-shared
-.endif
-.if defined(WANT_THREADS_SUPPORT)
-CONFIGURE_ARGS+=--enable-threads
-# ?is this an ObjC only thing?
-CONFIGURE_ARGS+=--enable-threads=posix
-.endif
-ALL_TARGET= bootstrap
-MAN1= cpp30.1 g++30.1 g77-30.1 gcc30.1 gcov30.1
-MAN7= fsf-funding.7 gfdl.7 gpl.7
-
-pre-everything::
- @${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT} target ${ARCH}-portbld-freebsd${OSREL}"
-
-pre-configure:
- @# Keep from running `autoconf' and `autoheader' since we modified
- @# configure.in by patching it.
- @${TOUCH} ${SRCDIR}/gcc/configure
- @${TOUCH} ${SRCDIR}/gcc/cstamp-h.in
- @${MKDIR} ${CONFIGURE_WRKSRC}
- @${RM} -f ${SRCDIR}/gcc/*/*.info*
-.if ${OSVERSION} >= 500113
- @${REINPLACE_CMD} -e 's/elf_i386/elf_i386_fbsd/g' \
- ${SRCDIR}/gcc/config/i386/freebsd.h
-.endif
-
-pre-build:
- cd ${SRCDIR} ; contrib/gcc_update --touch
-
-pre-install:
- ${MKDIR} ${PREFIX}/info
-
-post-install:
- @${RM} -f ${PREFIX}/bin/c++ ${PREFIX}/bin/${CONFIGURE_TARGET}-c++
- @${MV} -f ${PREFIX}/bin/c++filt ${PREFIX}/bin/g++filt
- @(for prog in ${PREFIX}/bin/gcc ${PREFIX}/bin/g++ \
- ${PREFIX}/bin/g++filt ${PREFIX}/bin/g77 ${PREFIX}/bin/gcov \
- ${PREFIX}/bin/${CONFIGURE_TARGET}-gcc \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1obj \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cc1plus \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/cpp0 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/collect2 \
- ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/${GCC_REV}/f771 ; \
- do \
- ${STRIP_CMD} $$prog ; \
- done )
-.for file in gcc g++ cpp g++filt gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++
- ${MV} -f ${PREFIX}/bin/${file} ${PREFIX}/bin/${file}30
- -( ${TEST} -e ${PREFIX}/man/man1/${file}.1 \
- && ${MV} -f ${PREFIX}/man/man1/${file}.1 \
- ${PREFIX}/man/man1/${file}30.1 )
-.endfor
-.for file in g77
- ${MV} -f ${PREFIX}/bin/${file} ${PREFIX}/bin/${file}-30
- ${MV} -f ${PREFIX}/man/man1/${file}.1 ${PREFIX}/man/man1/${file}-30.1
-.endfor
- ${MV} -f ${PREFIX}/bin/gccbug ${PREFIX}/bin/gccbug-${PORTVERSION:C/\.0$//}
- # These 3 libraries are moved from PREFIX/lib to avoid conflicts
- # with the stock compiler.
- ${MV} -f ${PREFIX}/lib/libiberty.a ${TARGLIB}
- ${MV} -f ${PREFIX}/lib/libstdc++.* ${PREFIX}/lib/libsupc++.* ${TARGLIB}
- -${MV} -f ${PREFIX}/lib/ieee ${TARGLIB}
-#.if defined(WANT_SHAREDLIBS)
-# ${MV} -f ${PREFIX}/lib/libstdc++.so* ${TARGLIB}
-#.endif
- cd ${PREFIX} ;\
- ${FIND} ${TARGLIB:S/^${PREFIX}\///} -type f -o -type l \
- >${WRKDIR}/PLIST.gcc-lib
- cd ${PREFIX} ;\
- ${FIND} ${TARGLIB:S/^${PREFIX}\///} -type d \
- | ${SORT} -r | ${SED} -e 's/^/@dirrm /g' \
- >>${WRKDIR}/PLIST.gcc-lib
- (${ECHO_CMD} "@unexec rmdir %D/lib/gcc-lib/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@unexec rmdir %D/lib/gcc-lib 2>&1 || true") >> ${WRKDIR}/PLIST.gcc-lib
- ${ECHO_CMD} "r ${TMPPLIST}" > ${WRKDIR}/ex.script
- ${ECHO_CMD} "/Insert PLIST.gcc-lib" >> ${WRKDIR}/ex.script
- ${ECHO_CMD} "d" >> ${WRKDIR}/ex.script
- ${ECHO_CMD} "r ${WRKDIR}/PLIST.gcc-lib" >> ${WRKDIR}/ex.script
- ${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
- ${CP} -p ${TMPPLIST} ${TMPPLIST}.pre-gcc-lib
- cd ${WRKDIR} ; ex < ex.script
-
-.include <bsd.port.post.mk>
diff --git a/lang/gcc30/distinfo b/lang/gcc30/distinfo
deleted file mode 100644
index 27c9d7c617eb..000000000000
--- a/lang/gcc30/distinfo
+++ /dev/null
@@ -1,12 +0,0 @@
-MD5 (gcc-core-3.0.4.tar.bz2) = 91b2eb00067defd75b6ab35e25e18a3e
-SHA256 (gcc-core-3.0.4.tar.bz2) = 6a0ebe892eae420d32ebc465d17d180a7358456d1e8775c2d488acb456bac802
-SIZE (gcc-core-3.0.4.tar.bz2) = 7920477
-MD5 (gcc-g++-3.0.4.tar.bz2) = 3640e2dc5d06257ed612da6da402a0c7
-SHA256 (gcc-g++-3.0.4.tar.bz2) = bb90c8fc4dc7a1e610237887deb8a85f30719eb2deef9119d0174bca33c51a5d
-SIZE (gcc-g++-3.0.4.tar.bz2) = 1748874
-MD5 (gcc-g77-3.0.4.tar.bz2) = 22c9def796cd7e01753cde3e01c125af
-SHA256 (gcc-g77-3.0.4.tar.bz2) = 1724aa8e4bd1063339ef761f3c934c3842b1bf025791d9fb66ac14eb70406ee9
-SIZE (gcc-g77-3.0.4.tar.bz2) = 1121057
-MD5 (gcc-objc-3.0.4.tar.bz2) = af54f3eb7ea363728397fe9a445773e6
-SHA256 (gcc-objc-3.0.4.tar.bz2) = e0959e7f004b5c51a69e6887328a0d663347af88e6fe467f38600682c88bcf5c
-SIZE (gcc-objc-3.0.4.tar.bz2) = 183586
diff --git a/lang/gcc30/files/patch-ad b/lang/gcc30/files/patch-ad
deleted file mode 100644
index d11c865f10fc..000000000000
--- a/lang/gcc30/files/patch-ad
+++ /dev/null
@@ -1,82 +0,0 @@
---- gcc/config/i386/freebsd-aout.h.orig Thu Nov 2 15:29:09 2000
-+++ gcc/config/i386/freebsd-aout.h Mon Nov 27 01:45:04 2000
-@@ -31,8 +31,11 @@
-
- /* 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 -D__FreeBSD__\
-@@ -84,14 +87,6 @@
- necessary when compiling PIC code. */
-
- #define JUMP_TABLES_IN_TEXT_SECTION 1
--
--/* 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
-- libraries compiled with the native cc. */
--#undef NO_DOLLAR_IN_LABEL
-
- /* 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
-@@ -102,19 +97,18 @@
-
- /* Profiling routines, partially copied from i386/osfrose.h. */
-
--/* Redefine this to use %eax instead of %edx. */
-+/* Tell final.c that we don't need a label passed to mcount. */
-+#define NO_PROFILE_DATA
-+
- #undef FUNCTION_PROFILER
- #define FUNCTION_PROFILER(FILE, LABELNO) \
- { \
- if (flag_pic) \
- { \
-- fprintf (FILE, "\tleal %sP%d@GOTOFF(%%ebx),%%eax\n", \
-- LPREFIX, (LABELNO)); \
- fprintf (FILE, "\tcall *mcount@GOT(%%ebx)\n"); \
- } \
- else \
- { \
-- fprintf (FILE, "\tmovl $%sP%d,%%eax\n", LPREFIX, (LABELNO)); \
- fprintf (FILE, "\tcall mcount\n"); \
- } \
- }
-@@ -132,6 +126,7 @@
-
- #define TYPE_ASM_OP "\t.type\t"
- #define SIZE_ASM_OP "\t.size\t"
-+#define SET_ASM_OP "\t.set\t"
-
- /* The following macro defines the format used to output the second
- operand of the .type assembler directive. Different svr4 assemblers
-@@ -141,6 +136,12 @@
-
- #define TYPE_OPERAND_FMT "@%s"
-
-+#define HANDLE_SYSV_PRAGMA 1
-+
-+#define ASM_WEAKEN_LABEL(FILE,NAME) \
-+ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
-+ fputc ('\n', FILE); } while (0)
-+
- /* 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. */
-@@ -242,6 +243,8 @@
- #define STARTFILE_SPEC \
- "%{shared:c++rt0.o%s} \
- %{!shared:%{pg:gcrt0.o%s}%{!pg:%{static:scrt0.o%s}%{!static:crt0.o%s}}}"
-+
-+#define MD_STARTFILE_PREFIX "/usr/lib/aout/"
-
- /* Define this so we can compile MS code for use with WINE. */
- #define HANDLE_PRAGMA_PACK_PUSH_POP
diff --git a/lang/gcc30/files/patch-af b/lang/gcc30/files/patch-af
deleted file mode 100644
index 9da4d3279d7c..000000000000
--- a/lang/gcc30/files/patch-af
+++ /dev/null
@@ -1,50 +0,0 @@
---- gcc/config/i386/freebsd.h.orig Wed May 30 16:05:31 2001
-+++ gcc/config/i386/freebsd.h Mon Jun 18 17:47:30 2001
-@@ -76,6 +76,14 @@
-
- #undef WCHAR_TYPE_SIZE
- #define WCHAR_TYPE_SIZE BITS_PER_WORD
-+
-+#undef CC1_SPEC
-+#define CC1_SPEC "\
-+ %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1}}}}} \
-+ %{maout: %{!mno-underscores: %{!munderscores: -munderscores }}}"
-+
-+#undef ASM_SPEC
-+#define ASM_SPEC "%{v*: -v} %{maout: %{fpic:-k} %{fPIC:-k}}"
-
- /* Provide a STARTFILE_SPEC appropriate for FreeBSD. Here we add
- the magical crtbegin.o file (see crtstuff.c) which provides part
-@@ -84,11 +92,18 @@
-
- #undef STARTFILE_SPEC
- #define STARTFILE_SPEC \
-- "%{!shared: \
-- %{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:%{profile:gcrt1.o%s} \
-+ %{!profile: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
-@@ -98,7 +113,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
diff --git a/lang/gcc30/files/patch-ai b/lang/gcc30/files/patch-ai
deleted file mode 100644
index d88ee27871b3..000000000000
--- a/lang/gcc30/files/patch-ai
+++ /dev/null
@@ -1,31 +0,0 @@
---- gcc/final.c.orig Sat Sep 5 22:52:01 1998
-+++ gcc/final.c Wed Oct 7 17:06:58 1998
-@@ -383,6 +383,8 @@
- /* zero word */
- assemble_integer (const0_rtx, long_bytes, 1);
-
-+ fprintf(asm_out_file,".stabs \"bbset\", 25, 0, 0, LPBX0\n");
-+
- /* address of filename */
- ASM_GENERATE_INTERNAL_LABEL (name, "LPBX", 1);
- assemble_integer (gen_rtx_SYMBOL_REF (Pmode, name), pointer_bytes, 1);
-@@ -1635,6 +1637,9 @@
- leaf_renumber_regs (first);
- #endif
-
-+ if (profile_block_flag)
-+ add_bb (file);
-+
- /* The Sun386i and perhaps other machines don't work right
- if the profiling code comes after the prologue. */
- #ifdef PROFILE_BEFORE_PROLOGUE
-@@ -1800,6 +1809,9 @@
- code to restore the stack frame and return to the caller. */
- FUNCTION_EPILOGUE (file, get_frame_size ());
- #endif
-+
-+ if (profile_block_flag)
-+ add_bb (file);
-
- #ifdef SDB_DEBUGGING_INFO
- if (write_symbols == SDB_DEBUG)
diff --git a/lang/gcc30/files/patch-ak b/lang/gcc30/files/patch-ak
deleted file mode 100644
index 969eda593aad..000000000000
--- a/lang/gcc30/files/patch-ak
+++ /dev/null
@@ -1,64 +0,0 @@
---- gcc/config.gcc.orig Sun Nov 19 16:58:02 2000
-+++ gcc/config.gcc Tue Nov 28 11:51:45 2000
-@@ -495,6 +495,20 @@
- tm_file=arm/semiaof.h
- tmake_file=arm/t-semiaof
- ;;
-+arm-*-freebsd*)
-+ tm_file="${tm_file} freebsd.h arm/elf.h arm/freebsd.h"
-+ tmake_file="t-freebsd arm/t-arm-elf"
-+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
-+ xmake_file=none
-+ gas=yes gnu_ld=yes
-+ stabs=yes
-+ case x${enable_threads} in
-+ xyes | xpthreads | xposix)
-+ thread_file='posix'
-+ tmake_file="${tmake_file} t-freebsd-thread"
-+ ;;
-+ esac
-+ ;;
- arm*-*-netbsd*)
- tm_file=arm/netbsd.h
- tmake_file="t-netbsd arm/t-netbsd"
-@@ -2674,6 +2688,19 @@
- tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
- extra_headers=ppc-asm.h
- ;;
-+powerpc*-*-freebsd*)
-+ tm_file="${tm_file} freebsd.h rs6000/freebsd.h"
-+ tmake_file="rs6000/t-ppcos t-freebsd rs6000/t-ppccomm"
-+ xmake_file=none
-+ gas=yes gnu_ld=yes
-+ stabs=yes
-+ case x${enable_threads} in
-+ xyes | xpthreads | xposix)
-+ thread_file='posix'
-+ tmake_file="${tmake_file} t-freebsd-thread"
-+ ;;
-+ esac
-+ ;;
- powerpc-*-linux*libc1)
- tm_file="rs6000/sysv4.h rs6000/linux.h"
- xm_file=rs6000/xm-sysv4.h
-@@ -3101,6 +3128,20 @@
- tmake_file=sparc/t-sp64
- tm_file=sparc/sp64-elf.h
- extra_parts="crtbegin.o crtend.o"
-+ ;;
-+sparc64-*-freebsd*)
-+ tm_file="${tm_file} freebsd.h sparc/elf.h sparc/sp64-elf.h sparc/freebsd.h"
-+ tmake_file=t-freebsd sparc/t-sp64
-+ extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
-+ xmake_file=none
-+ gas=yes gnu_ld=yes
-+ stabs=yes
-+ case x${enable_threads} in
-+ xyes | xpthreads | xposix)
-+ thread_file='posix'
-+ tmake_file="${tmake_file} t-freebsd-thread"
-+ ;;
-+ esac
- ;;
- sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
- tmake_file="t-linux sparc/t-linux64"
diff --git a/lang/gcc30/files/patch-ar b/lang/gcc30/files/patch-ar
deleted file mode 100644
index d08258d6cfd1..000000000000
--- a/lang/gcc30/files/patch-ar
+++ /dev/null
@@ -1,52 +0,0 @@
---- gcc/config/freebsd.h.orig Sat Nov 3 12:28:24 2001
-+++ gcc/config/freebsd.h Sun Jan 27 02:22:51 2002
-@@ -55,29 +55,32 @@
- #undef WORD_SWITCH_TAKES_ARG
- #define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
-
-+/* Place spaces around this string. We depend on string splicing to produce
-+ the final CPP_PREDEFINES value. */
-+
- #if FBSD_MAJOR == 6
- #define FBSD_CPP_PREDEFINES \
-- "-D__FreeBSD__=6 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-+ " -D__FreeBSD__=6 -Dunix -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
- #endif
-
- #if FBSD_MAJOR == 5
- #define FBSD_CPP_PREDEFINES \
-- "-D__FreeBSD__=5 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-+ " -D__FreeBSD__=5 -Dunix -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
- #endif
-
- #if FBSD_MAJOR == 4
- #define FBSD_CPP_PREDEFINES \
-- "-D__FreeBSD__=4 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-+ " -D__FreeBSD__=4 -Dunix -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
- #endif
-
- #if FBSD_MAJOR == 3
- #define FBSD_CPP_PREDEFINES \
-- "-D__FreeBSD__=3 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-+ " -D__FreeBSD__=3 -Dunix -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
- #endif
-
- #ifndef FBSD_CPP_PREDEFINES
- #define FBSD_CPP_PREDEFINES \
-- "-D__FreeBSD__ -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD"
-+ " -D__FreeBSD__ -Dunix -D__KPRINTF_ATTRIBUTE__ -Asystem=unix -Asystem=bsd -Asystem=FreeBSD "
- #endif
-
- #undef CPP_PREDEFINES
-@@ -89,7 +92,10 @@
- #define FBSD_CPP_SPEC " \
- %(cpp_cpu) \
- %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \
-- %{posix:-D_POSIX_SOURCE}"
-+ %{posix:-D_POSIX_SOURCE} \
-+ %{!maout: -D__ELF__} \
-+ %{munderscores: -D__UNDERSCORES__} \
-+ %{maout: %{!mno-underscores: -D__UNDERSCORES__}}"
-
- #undef CPP_SPEC
- #define CPP_SPEC FBSD_CPP_SPEC
diff --git a/lang/gcc30/files/patch-fa b/lang/gcc30/files/patch-fa
deleted file mode 100644
index 350959df8e89..000000000000
--- a/lang/gcc30/files/patch-fa
+++ /dev/null
@@ -1,309 +0,0 @@
---- gcc/c-format.c.orig Sat Jan 13 15:29:57 2001
-+++ gcc/c-format.c Wed Feb 14 03:47:34 2001
-@@ -75,13 +75,16 @@
- last. */
- enum format_type { printf_format_type, scanf_format_type,
- strftime_format_type, strfmon_format_type,
-+ printf0_format_type,
- format_type_error };
-
- static enum format_type decode_format_type PARAMS ((const char *));
- static void record_function_format PARAMS ((tree, tree, enum format_type,
-- int, int));
-+ int, int, int));
- static void record_international_format PARAMS ((tree, tree, int));
-
-+inline static int get_null_fmt_ok PARAMS ((enum format_type));
-+
- /* Handle the format attribute (with arguments ARGS) attached to the decl
- DECL. It is already verified that DECL is a decl and ARGS contains
- exactly three arguments. */
-@@ -99,6 +102,7 @@
- enum format_type format_type;
- tree argument;
- unsigned int arg_num;
-+ int null_format_ok;
-
- if (TREE_CODE (decl) != FUNCTION_DECL)
- {
-@@ -109,7 +113,7 @@
-
- if (TREE_CODE (format_type_id) != IDENTIFIER_NODE)
- {
-- error ("unrecognized format specifier");
-+ error_with_decl (decl, "unrecognized format specifier");
- return;
- }
- else
-@@ -117,6 +121,7 @@
- const char *p = IDENTIFIER_POINTER (format_type_id);
-
- format_type = decode_format_type (p);
-+ null_format_ok = get_null_fmt_ok (format_type);
-
- if (format_type == format_type_error)
- {
-@@ -195,7 +200,8 @@
- }
-
- record_function_format (DECL_NAME (decl), DECL_ASSEMBLER_NAME (decl),
-- format_type, format_num, first_arg_num);
-+ format_type, format_num, first_arg_num,
-+ null_format_ok);
- }
-
-
-@@ -276,6 +282,7 @@
- enum format_type format_type; /* type of format (printf, scanf, etc.) */
- int format_num; /* number of format argument */
- int first_arg_num; /* number of first arg (zero for varargs) */
-+ int null_format_ok; /* TRUE if the format string may be NULL */
- } function_format_info;
-
- static function_format_info *function_format_list = NULL;
-@@ -309,44 +316,44 @@
- {
- /* Functions from ISO/IEC 9899:1990. */
- record_function_format (get_identifier ("printf"), NULL_TREE,
-- printf_format_type, 1, 2);
-+ printf_format_type, 1, 2, 0);
- record_function_format (get_identifier ("__builtin_printf"), NULL_TREE,
-- printf_format_type, 1, 2);
-+ printf_format_type, 1, 2, 0);
- record_function_format (get_identifier ("fprintf"), NULL_TREE,
-- printf_format_type, 2, 3);
-+ printf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("__builtin_fprintf"), NULL_TREE,
-- printf_format_type, 2, 3);
-+ printf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("sprintf"), NULL_TREE,
-- printf_format_type, 2, 3);
-+ printf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("scanf"), NULL_TREE,
-- scanf_format_type, 1, 2);
-+ scanf_format_type, 1, 2, 0);
- record_function_format (get_identifier ("fscanf"), NULL_TREE,
-- scanf_format_type, 2, 3);
-+ scanf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("sscanf"), NULL_TREE,
-- scanf_format_type, 2, 3);
-+ scanf_format_type, 2, 3, 0);
- record_function_format (get_identifier ("vprintf"), NULL_TREE,
-- printf_format_type, 1, 0);
-+ printf_format_type, 1, 0, 0);
- record_function_format (get_identifier ("vfprintf"), NULL_TREE,
-- printf_format_type, 2, 0);
-+ printf_format_type, 2, 0, 0);
- record_function_format (get_identifier ("vsprintf"), NULL_TREE,
-- printf_format_type, 2, 0);
-+ printf_format_type, 2, 0, 0);
- record_function_format (get_identifier ("strftime"), NULL_TREE,
-- strftime_format_type, 3, 0);
-+ strftime_format_type, 3, 0, 0);
- }
-
- if (flag_hosted && flag_isoc99)
- {
- /* ISO C99 adds the snprintf and vscanf family functions. */
- record_function_format (get_identifier ("snprintf"), NULL_TREE,
-- printf_format_type, 3, 4);
-+ printf_format_type, 3, 4, 0);
- record_function_format (get_identifier ("vsnprintf"), NULL_TREE,
-- printf_format_type, 3, 0);
-+ printf_format_type, 3, 0, 0);
- record_function_format (get_identifier ("vscanf"), NULL_TREE,
-- scanf_format_type, 1, 0);
-+ scanf_format_type, 1, 0, 0);
- record_function_format (get_identifier ("vfscanf"), NULL_TREE,
-- scanf_format_type, 2, 0);
-+ scanf_format_type, 2, 0, 0);
- record_function_format (get_identifier ("vsscanf"), NULL_TREE,
-- scanf_format_type, 2, 0);
-+ scanf_format_type, 2, 0, 0);
- }
-
- if (flag_hosted && flag_noniso_default_format_attributes)
-@@ -357,7 +364,7 @@
- record_international_format (get_identifier ("dcgettext"), NULL_TREE, 2);
- /* X/Open strfmon function. */
- record_function_format (get_identifier ("strfmon"), NULL_TREE,
-- strfmon_format_type, 3, 4);
-+ strfmon_format_type, 3, 4, 0);
- }
- }
-
-@@ -372,12 +379,13 @@
-
- static void
- record_function_format (name, assembler_name, format_type,
-- format_num, first_arg_num)
-+ format_num, first_arg_num, null_format_ok)
- tree name;
- tree assembler_name;
- enum format_type format_type;
- int format_num;
- int first_arg_num;
-+ int null_format_ok;
- {
- function_format_info *info;
-
-@@ -401,6 +409,7 @@
- info->format_type = format_type;
- info->format_num = format_num;
- info->first_arg_num = first_arg_num;
-+ info->null_format_ok = null_format_ok;
- }
-
- /* Record information for the names of function that modify the format
-@@ -677,6 +686,8 @@
- /* Pointer to type of argument expected if '*' is used for a precision,
- or NULL if '*' not used for precisions. */
- tree *precision_type;
-+ /* Needed for FreeBSD kernel and the printf0() printf-like function. */
-+ int null_format_ok;
- } format_kind_info;
-
-
-@@ -902,6 +913,20 @@
-
- static const format_char_info print_char_table[] =
- {
-+#warning The FreeBSD kernel extensions in print_char_table might not be done correctly.
-+/* FreeBSD kernel extensions (src/sys/kern/subr_prf.c). */
-+/* The format %b is supported to decode error registers.
-+ Its usage is: printf("reg=%b\n", regval, "<base><arg>*");
-+ which produces: reg=3<BITTWO,BITONE>
-+ The format %D provides a hexdump given a pointer and separator string:
-+ ("%6D", ptr, ":") -> XX:XX:XX:XX:XX:XX
-+ ("%*D", len, ptr, " ") -> XX XX XX XX ...
-+ */
-+ { "D", 1, STD_EXT, { T89_C, T89_C, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "-wp", "c" },
-+ { "b", 1, STD_EXT, { T89_C, T89_C, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "-wp", "" },
-+ { "rz", 0, STD_EXT, { BADLEN, T89_I, T89_I, T89_L, BADLEN, BADLEN, BADLEN, BADLEN, BADLEN }, "-wp0 +#", "i" },
-+#define unextended_print_char_table (print_char_table + 3)
-+#warning The FreeBSD kernel extensions in print_char_table might not be done correctly.
- /* C89 conversion specifiers. */
- { "di", 0, STD_C89, { T89_I, T99_SC, T89_S, T89_L, T9L_LL, TEX_LL, T99_SST, T99_PD, T99_IM }, "-wp0 +'I", "i" },
- { "oxX", 0, STD_C89, { T89_UI, T99_UC, T89_US, T89_UL, T9L_ULL, TEX_ULL, T99_ST, T99_UPD, T99_UIM }, "-wp0#", "i" },
-@@ -985,22 +1010,33 @@
- FMT_FLAG_ARG_CONVERT|FMT_FLAG_DOLLAR_MULTIPLE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_EMPTY_PREC_OK,
- 'w', 0, 'p', 0, 'L',
- &integer_type_node, &integer_type_node
-+ ,0
- },
- { "scanf", scanf_length_specs, scan_char_table, "*'I", NULL,
- scanf_flag_specs, scanf_flag_pairs,
- FMT_FLAG_ARG_CONVERT|FMT_FLAG_SCANF_A_KLUDGE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_ZERO_WIDTH_BAD,
- 'w', 0, 0, '*', 'L',
- NULL, NULL
-+ ,0
- },
- { "strftime", NULL, time_char_table, "_-0^#", "EO",
- strftime_flag_specs, strftime_flag_pairs,
- FMT_FLAG_FANCY_PERCENT_OK, 'w', 0, 0, 0, 0,
- NULL, NULL
-+ ,0
- },
- { "strfmon", strfmon_length_specs, monetary_char_table, "=^+(!-", NULL,
- strfmon_flag_specs, strfmon_flag_pairs,
- FMT_FLAG_ARG_CONVERT, 'w', '#', 'p', 0, 'L',
- NULL, NULL
-+ ,0
-+ },
-+ { "printf0", printf_length_specs, print_char_table, " +#0-'I", NULL,
-+ printf_flag_specs, printf_flag_pairs,
-+ FMT_FLAG_ARG_CONVERT|FMT_FLAG_DOLLAR_MULTIPLE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_EMPTY_PREC_OK,
-+ 'w', 0, 'p', 0, 'L',
-+ &integer_type_node, &integer_type_node
-+ ,1
- }
- };
-
-@@ -1053,6 +1089,14 @@
-
- static void check_format_types PARAMS ((int *, format_wanted_type *));
-
-+
-+inline static int get_null_fmt_ok (fmttype)
-+ enum format_type fmttype;
-+{
-+ return format_types[(int)fmttype].null_format_ok;
-+}
-+
-+
- /* Decode a format type from a string, returning the type, or
- format_type_error if not valid, in which case the caller should print an
- error message. */
-@@ -1568,7 +1612,7 @@
- specially if info == NULL and add a res->number_null entry for
- that case, or maybe add a function pointer to be called at
- the end instead of hardcoding check_format_info_main. */
-- status_warning (status, "null format string");
-+ if (!info->null_format_ok) status_warning (status, "null format string");
-
- /* Skip to first argument to check, so we can see if this format
- has any arguments (it shouldn't). */
-@@ -1764,6 +1808,54 @@
- main_arg_num = opnum + info->first_arg_num - 1;
- }
- }
-+ if (*format_chars == 'b')
-+ {
-+ /* There should be an int arg to control the string arg. */
-+ if (params == 0)
-+ {
-+ status_warning (status, "too few arguments for format");
-+ return;
-+ }
-+ if (info->first_arg_num != 0)
-+ {
-+ cur_param = TREE_VALUE (params);
-+ params = TREE_CHAIN (params);
-+ ++arg_num;
-+ if ((TYPE_MAIN_VARIANT (TREE_TYPE (cur_param))
-+ != integer_type_node)
-+ &&
-+ (TYPE_MAIN_VARIANT (TREE_TYPE (cur_param))
-+ != unsigned_type_node))
-+ {
-+ status_warning (status, "bitmap is not type int (arg %d)", arg_num);
-+ }
-+ }
-+ }
-+ if (*format_chars == 'D')
-+ {
-+ /* There should be an unsigned char * arg before the string arg. */
-+ if (params == 0)
-+ {
-+ status_warning (status, "too few arguments for format");
-+ return;
-+ }
-+ if (info->first_arg_num != 0)
-+ {
-+ tree cur_type;
-+ cur_param = TREE_VALUE (params);
-+ params = TREE_CHAIN (params);
-+ ++arg_num;
-+ cur_type = TREE_TYPE (cur_param);
-+ if (TREE_CODE (cur_type) != POINTER_TYPE
-+ || TYPE_MAIN_VARIANT (TREE_TYPE (cur_type))
-+ != unsigned_char_type_node)
-+ {
-+ status_warning (status,
-+ "ethernet address is not type unsigned char * (arg %d)",
-+ arg_num);
-+ }
-+ }
-+ }
-
- /* Read any format flags, but do not yet validate them beyond removing
- duplicates, since in general validation depends on the rest of
-@@ -2166,7 +2258,7 @@
- else if (strchr (fci->flags2, '2') != 0)
- y2k_level = 2;
- if (y2k_level == 3)
-- status_warning (status, "`%%%c' yields only last 2 digits of year in some locales",
-+ status_warning (status, "`%%%c' yields only last 2 digits of year in some locales on non-BSD systems",
- format_char);
- else if (y2k_level == 2)
- status_warning (status, "`%%%c' yields only last 2 digits of year", format_char);
diff --git a/lang/gcc30/files/patch-fb b/lang/gcc30/files/patch-fb
deleted file mode 100644
index dae6d331898c..000000000000
--- a/lang/gcc30/files/patch-fb
+++ /dev/null
@@ -1,13 +0,0 @@
---- 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;
-
-+/* Nonzero means that -Wformat accepts certain non-ANSI formats. */
-+
-+extern int flag_format_extensions;
-+
- /* Nonzero if generating code to do profiling. */
-
- extern int profile_flag;
diff --git a/lang/gcc30/files/patch-fc b/lang/gcc30/files/patch-fc
deleted file mode 100644
index d03aaf307875..000000000000
--- a/lang/gcc30/files/patch-fc
+++ /dev/null
@@ -1,41 +0,0 @@
---- gcc/toplev.c.orig Tue Jun 6 13:11:39 2000
-+++ gcc/toplev.c Mon Jun 26 20:19:31 2000
-@@ -787,6 +787,9 @@
- /* Tag all structures with __attribute__(packed) */
- int flag_pack_struct = 0;
-
-+/* Nonzero means that -Wformat accepts certain system-dependent formats. */
-+int flag_format_extensions = 0;
-+
- /* Emit code to check for stack overflow; also may cause large objects
- to be allocated dynamically. */
- int flag_stack_check;
-@@ -1064,6 +1067,8 @@
- "Do the full regmove optimization pass"},
- {"pack-struct", &flag_pack_struct, 1,
- N_("Pack structure members together without holes") },
-+ {"format-extensions", &flag_format_extensions, 1,
-+ N_("-Wformat accepts certain FreeBSD system-dependent formats") },
- {"stack-check", &flag_stack_check, 1,
- N_("Insert stack checking code into the program") },
- {"argument-alias", &flag_argument_noalias, 0,
-@@ -4484,6 +4489,19 @@
- if (optimize_val != -1)
- {
- optimize = optimize_val;
-+#ifdef __alpha__
-+ if (optimize > 1)
-+ {
-+ #ifdef FORCE_OPTIMIZATION_DOWNGRADE
-+ optimize = 1;
-+ warning ("\n***\n***\t-O%d converted to \"-O1\" due to optimizer bugs on this platform\n***\n",
-+ optimize_val);
-+ #else
-+ warning ("\n***\n***\tThe -O%d flag TRIGGERS KNOWN OPTIMIZER BUGS ON THIS PLATFORM\n***\n",
-+ optimize_val);
-+ #endif
-+ }
-+#endif /*__alpha__*/
- optimize_size = 0;
- }
- }
diff --git a/lang/gcc30/files/patch-va b/lang/gcc30/files/patch-va
deleted file mode 100644
index 9b046ee019fc..000000000000
--- a/lang/gcc30/files/patch-va
+++ /dev/null
@@ -1,20 +0,0 @@
---- gcc/Makefile.in.orig Sat Nov 18 16:30:05 2000
-+++ gcc/Makefile.in Mon Nov 27 02:29:50 2000
-@@ -863,7 +863,7 @@
- rm -f config.run
-
- $(srcdir)/configure: $(srcdir)/configure.in
-- (cd $(srcdir) && autoconf)
-+ (cd $(srcdir) && echo "wants to run autoconf")
-
- gccbug: $(srcdir)/gccbug.in
- CONFIG_FILES=gccbug CONFIG_HEADERS= ./config.status
-@@ -882,7 +882,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 "wants to run autoheader")
- @rm -f $(srcdir)/cstamp-h.in
- echo timestamp > $(srcdir)/cstamp-h.in
- auto-host.h: cstamp-h ; @true
diff --git a/lang/gcc30/files/patch-vb b/lang/gcc30/files/patch-vb
deleted file mode 100644
index d90e1ea75aff..000000000000
--- a/lang/gcc30/files/patch-vb
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.in.orig Fri Jun 8 12:23:56 2001
-+++ Makefile.in Sat Sep 1 18:57:21 2001
-@@ -143,7 +143,7 @@
-
- MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
- then echo $$r/texinfo/makeinfo/makeinfo ; \
-- else echo makeinfo ; fi`
-+ else echo makeinfo --no-split ; fi`
-
- # This just becomes part of the MAKEINFO definition passed down to
- # sub-makes. It lets flags be given on the command line while still
diff --git a/lang/gcc30/pkg-descr b/lang/gcc30/pkg-descr
deleted file mode 100644
index 61b4551f676a..000000000000
--- a/lang/gcc30/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-GCC, the GNU Compiler Collection includes gcc, g++, g77, and gcj.
-
-WWW: http://gcc.gnu.org/
diff --git a/lang/gcc30/pkg-plist b/lang/gcc30/pkg-plist
deleted file mode 100644
index ae4ab5b1c1e7..000000000000
--- a/lang/gcc30/pkg-plist
+++ /dev/null
@@ -1,19 +0,0 @@
-@comment $FreeBSD$
-bin/cpp30
-bin/g++filt30
-bin/g++30
-bin/g77-30
-bin/gcc30
-bin/gcov30
-bin/%%GNU_HOST%%-gcc30
-bin/%%GNU_HOST%%-g++30
-bin/gccbug-%%GCC_REV%%
-@comment not needed post-libstdc++-v3: %%GNU_HOST%%/include/_G_config.h
-@comment Insert PLIST.gcc-lib here
-@comment -=[ begin PLIST.gcc-lib ]=-
-@comment -=[ end PLIST.gcc-lib ]=-
-@comment unexec install-info --delete %D/info/c-tree.info %D/info/dir
-@comment info/c-tree.info
-@comment info/c-tree.info-1
-@comment info/c-tree.info-2
-@comment info/c-tree.info-3