diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-20 14:58:42 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-20 14:58:42 +0000 |
commit | 405711de1a18d9de11292807ceab1873285ffeeb (patch) | |
tree | d54887798fa85070a1ff0f7331e43ef538f2f78e /gcc/tlink.c | |
parent | 1d23987c18a7f8ca1da53f6465a4c68cc13a3ce7 (diff) | |
download | gcc-405711de1a18d9de11292807ceab1873285ffeeb.tar.gz |
Major cutover to using system.h:
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o,
c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o,
caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o,
dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o,
expr.o, final.o, flow.o, function.o, getpwd.o, global.o,
integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o,
prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o,
reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o,
rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o,
tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend
on system.h.
* alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c,
c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c,
caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c,
dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c,
expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c,
integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c,
prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c,
reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c,
rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c,
stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c,
xcoffout.c: Include system.h. Organize include ordering so
that stdarg/varargs comes before other system headers. Remove
spurious casts of functions assured of a prototype in system.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18726 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tlink.c')
-rw-r--r-- | gcc/tlink.c | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/gcc/tlink.c b/gcc/tlink.c index 86b227a9bd1..06207dda135 100644 --- a/gcc/tlink.c +++ b/gcc/tlink.c @@ -20,28 +20,11 @@ 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. */ -#include <stdio.h> -#include <ctype.h> #include "config.h" +#include "system.h" #include "hash.h" #include "demangle.h" -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#endif - -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - -#ifdef HAVE_STRING_H -#include <string.h> -#else -#ifdef HAVE_STRINGS_H -#include <strings.h> -#endif -#endif - #define MAX_ITERATIONS 17 /* Obstack allocation and deallocation routines. */ @@ -49,12 +32,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define obstack_chunk_free free extern char * xmalloc PARAMS((unsigned)); -#ifdef NEED_DECLARATION_FREE -extern void free (); -#endif -#ifdef NEED_DECLARATION_GETENV -extern char * getenv (); -#endif /* Defined in collect2.c. */ extern int vflag, debug; @@ -306,10 +283,10 @@ static char * frob_extension (s, ext) char *s, *ext; { - char *p = (char *) rindex (s, '/'); + char *p = rindex (s, '/'); if (! p) p = s; - p = (char *) rindex (p, '.'); + p = rindex (p, '.'); if (! p) p = s + strlen (s); @@ -575,7 +552,7 @@ scan_linker_output (fname) /* Try a mangled name in `quotes'. */ { demangled *dem = 0; - p = (char *) index (q+1, '`'); + p = index (q+1, '`'); q = 0; #define MUL "multiple definition of " @@ -586,7 +563,7 @@ scan_linker_output (fname) char *beg = p - sizeof (MUL) + 1; *p = 0; if (!strcmp (beg, MUL) || !strcmp (beg, UND)) - p++, q = (char *) index (p, '\''); + p++, q = index (p, '\''); } if (q) *q = 0, dem = demangled_hash_lookup (p, false); |