summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/gcc.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-11-26 18:25:20 +0000
committerobrien <obrien@FreeBSD.org>2002-11-26 18:25:20 +0000
commitfa7971ab704ca66bdedfd46fc3848768b13fc91e (patch)
treed57c6ff3abefeaa7651e5939962631421a3f6292 /contrib/gcc/gcc.c
parent100044adf505a4d3825eed40ec34ffa1c2397863 (diff)
downloadFreeBSD-src-fa7971ab704ca66bdedfd46fc3848768b13fc91e.zip
FreeBSD-src-fa7971ab704ca66bdedfd46fc3848768b13fc91e.tar.gz
Remove our custom mixed ELF/a.out support. This means the base compiler
now only produce ELF objects. It also makes us closer to stock GCC, and simplifies the set of changes we still need from stock GCC on every import. Applauded by: peter Approved by: re
Diffstat (limited to 'contrib/gcc/gcc.c')
-rw-r--r--contrib/gcc/gcc.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/contrib/gcc/gcc.c b/contrib/gcc/gcc.c
index a5391ad..5b8d94a 100644
--- a/contrib/gcc/gcc.c
+++ b/contrib/gcc/gcc.c
@@ -3004,17 +3004,6 @@ static int warn_std;
/* Gives value to pass as "warn" to add_prefix for standard prefixes. */
static int *warn_std_ptr = 0;
-
-
-#if defined(FREEBSD_NATIVE)
-#include <objformat.h>
-
-typedef enum { OBJFMT_UNKNOWN, OBJFMT_AOUT, OBJFMT_ELF } objf_t;
-
-static objf_t objformat = OBJFMT_UNKNOWN;
-#endif
-
-
#if defined(HAVE_TARGET_OBJECT_SUFFIX) || defined(HAVE_TARGET_EXECUTABLE_SUFFIX)
@@ -3369,19 +3358,6 @@ process_command (argc, argv)
}
}
-#if defined(FREEBSD_NATIVE)
- {
- char buf[64];
- if (getobjformat (buf, sizeof buf, &argc, argv))
- if (strcmp (buf, "aout") == 0)
- objformat = OBJFMT_AOUT;
- else if (strcmp (buf, "elf") == 0)
- objformat = OBJFMT_ELF;
- else
- fprintf(stderr, "Unrecognized object format: %s\n", buf);
- }
-#endif
-
/* Options specified as if they appeared on the command line. */
temp = getenv ("GCC_OPTIONS");
if ((temp) && (strlen (temp) > 0))
@@ -3871,20 +3847,8 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
/* 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
- switch (objformat)
- {
- case OBJFMT_AOUT:
- n_switches++; /* add implied -maout */
- add_prefix (&exec_prefixes, PREFIX"/libexec/aout/", "BINUTILS",
- 0, 0, warn_std_ptr, 0);
- break;
- case OBJFMT_ELF:
add_prefix (&exec_prefixes, PREFIX"/bin/", "BINUTILS",
0, 0, warn_std_ptr, 0);
- break;
- case OBJFMT_UNKNOWN:
- fatal ("object format unknown");
- }
#endif /* FREEBSD_NATIVE */
#ifndef OS2
add_prefix (&exec_prefixes, standard_exec_prefix, "GCC",
@@ -3962,25 +3926,6 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
to the copy in the vector of switches.
Store all the infiles in their vector. */
-#if defined(FREEBSD_NATIVE)
- switch (objformat)
- {
- case OBJFMT_AOUT:
- switches[n_switches].part1 = "maout";
- switches[n_switches].args = 0;
- switches[n_switches].live_cond = 0;
- switches[n_switches].validated = 0;
- n_switches++;
- putenv("OBJFORMAT=aout");
- break;
- case OBJFMT_ELF:
- putenv("OBJFORMAT=elf");
- break;
- case OBJFMT_UNKNOWN:
- fatal ("object format unknown");
- }
-#endif
-
for (i = 1; i < argc; i++)
{
/* Just skip the switches that were handled by the preceding loop. */
OpenPOWER on IntegriCloud