]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/collect2.h
Makefile.in (tlink.o): Don't depend on toplev.h.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 3 Sep 1999 19:13:34 +0000 (19:13 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 3 Sep 1999 19:13:34 +0000 (19:13 +0000)
commitd4058195bd21860bf183e07a8ac033d09ded8e69
tree22ab06cab899e64f8be5b78f963f880fe8dbfd60
parent2f11d4079a934bae14bc415f5f55fd690ca1187c
Makefile.in (tlink.o): Don't depend on toplev.h.

* Makefile.in (tlink.o): Don't depend on toplev.h.

* collect2.c (c_file, o_file, export_file, import_file, ldout,
output_file, nm_file_name, ldd_file_name, strip_file_name,
c_file_name, prefix_list, libexts, is_ctor_dtor, find_a_file,
add_prefix, prefix_from_env, prefix_from_string, do_wait,
fork_execute, maybe_unlink, add_to_list,
extract_init_priority, write_list, dump_list,
dump_prefix_list, write_list_with_asm, write_c_file,
write_c_file_stat, write_c_file_glob, scan_prog_file,
scan_libraries, is_in_list, resolve_lib_name, use_import_list,
ignore_library, extract_string, notice, dump_file, target_machine,
collect_wait, collect_execute, libname, locatelib, aix_std_libs,
read_file, print_load_command): Constify a char*.
(fdopen, error, fatal, fatal_perror): Don't prototype.
(my_strerror): Remove.  All callers use xstrerror instead.
(xcalloc, xmalloc, xrealloc, xstrdup, putenv): Remove definitions.
(main): Add prototype.  Constify lots of char* ptrs.  Change calls
to xcalloc/strcpy/strcat/...  to one call to concat.
(main, scan_prog_file, scan_libraries): Use an intermediate
`const char **' to build an argv array.
(mapfile, libselect, libcompare, locatelib): Add prototypes.

* collect2.h (collect_execute, collect_wait, dump_file,
file_exists): Constify a char*.
(ldout, c_file_name, temporary_obstack, permanent_obstack,
temporary_firstobj, vflag, debug): Add extern declarations.
(fancy_abort, error, notice, fatal, fatal_perror): Add prototypes.

* tlink.c: Don't include toplev.h.
(vflag, debug, ldout, c_file_name, temporary_obstack,
permanent_obstack, temporary_firstobj): Don't declare.
(tlink_execute, frob_extension, symbol_hash_lookup,
file_hash_lookup, demangled_hash_lookup, tlink_init, freadsym,
recompile_files, read_repo_files, demangle_new_symbols,
scan_linker_output): Constify a char*.
(symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc,
do_tlink): Mark parameters with ATTRIBUTE_UNUSED.

From-SVN: r29087
gcc/ChangeLog
gcc/Makefile.in
gcc/collect2.c
gcc/collect2.h
gcc/tlink.c