Deleted Added
full compact
gcc.c (54990) gcc.c (55220)
1/* Compiler driver program that can handle many languages.
2 Copyright (C) 1987, 89, 92-98, 1999 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)

--- 7 unchanged lines hidden (view full) ---

16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA.
20
21This paragraph is here to try to keep Sun CC from dying.
22The number of chars here seems crucial!!!! */
23
1/* Compiler driver program that can handle many languages.
2 Copyright (C) 1987, 89, 92-98, 1999 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)

--- 7 unchanged lines hidden (view full) ---

16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA.
20
21This paragraph is here to try to keep Sun CC from dying.
22The number of chars here seems crucial!!!! */
23
24/* $FreeBSD: head/contrib/gcc/gcc.c 54990 1999-12-22 05:00:28Z obrien $ */
24/* $FreeBSD: head/contrib/gcc/gcc.c 55220 1999-12-29 14:42:46Z obrien $ */
25
26/* This program is the user interface to the C compiler and possibly to
27other compilers. It is used because compilation is a complicated procedure
28which involves running several programs and passing temporary files between
29them, forwarding the users switches to those programs selectively,
30and deleting the temporary files at the end.
31
32CC recognizes how to compile each input file by suffixes in the file names.

--- 2628 unchanged lines hidden (view full) ---

2661 endp = startp = endp + 1;
2662 }
2663 else
2664 endp++;
2665 }
2666 }
2667
2668 GET_ENV_PATH_LIST (temp, "LIBRARY_PATH");
25
26/* This program is the user interface to the C compiler and possibly to
27other compilers. It is used because compilation is a complicated procedure
28which involves running several programs and passing temporary files between
29them, forwarding the users switches to those programs selectively,
30and deleting the temporary files at the end.
31
32CC recognizes how to compile each input file by suffixes in the file names.

--- 2628 unchanged lines hidden (view full) ---

2661 endp = startp = endp + 1;
2662 }
2663 else
2664 endp++;
2665 }
2666 }
2667
2668 GET_ENV_PATH_LIST (temp, "LIBRARY_PATH");
2669 if (temp && *cross_compile == '0')
2669 if (temp)
2670 {
2671 const char *startp, *endp;
2672 char *nstore = (char *) alloca (strlen (temp) + 3);
2673
2674 startp = endp = temp;
2675 while (1)
2676 {
2677 if (*endp == PATH_SEPARATOR || *endp == 0)

--- 400 unchanged lines hidden (view full) ---

3078 (such as cpp) rather than those of the host system. */
3079 /* Use 2 as fourth arg meaning try just the machine as a suffix,
3080 as well as trying the machine and the version. */
3081#ifdef FREEBSD_NATIVE
3082 switch (objformat)
3083 {
3084 case OBJFMT_AOUT:
3085 n_switches++; /* add implied -maout */
2670 {
2671 const char *startp, *endp;
2672 char *nstore = (char *) alloca (strlen (temp) + 3);
2673
2674 startp = endp = temp;
2675 while (1)
2676 {
2677 if (*endp == PATH_SEPARATOR || *endp == 0)

--- 400 unchanged lines hidden (view full) ---

3078 (such as cpp) rather than those of the host system. */
3079 /* Use 2 as fourth arg meaning try just the machine as a suffix,
3080 as well as trying the machine and the version. */
3081#ifdef FREEBSD_NATIVE
3082 switch (objformat)
3083 {
3084 case OBJFMT_AOUT:
3085 n_switches++; /* add implied -maout */
3086 add_prefix (&exec_prefixes, "/usr/libexec/aout/", "BINUTILS",
3086 add_prefix (&exec_prefixes, PREFIX"/libexec/aout/", "BINUTILS",
3087 0, 0, NULL_PTR);
3088 break;
3089 case OBJFMT_ELF:
3087 0, 0, NULL_PTR);
3088 break;
3089 case OBJFMT_ELF:
3090 add_prefix (&exec_prefixes, "/usr/libexec/elf/", "BINUTILS",
3090 add_prefix (&exec_prefixes, PREFIX"/libexec/elf/", "BINUTILS",
3091 0, 0, NULL_PTR);
3092 break;
3093 case OBJFMT_UNKNOWN:
3094 fatal ("object format unknown");
3095 }
3096#else /* not FREEBSD_NATIVE */
3097#ifndef OS2
3098 add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS",

--- 2805 unchanged lines hidden ---
3091 0, 0, NULL_PTR);
3092 break;
3093 case OBJFMT_UNKNOWN:
3094 fatal ("object format unknown");
3095 }
3096#else /* not FREEBSD_NATIVE */
3097#ifndef OS2
3098 add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS",

--- 2805 unchanged lines hidden ---