d4058195bd
* 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
52 lines
1.7 KiB
C
52 lines
1.7 KiB
C
/* Header file for collect/tlink routines.
|
|
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, 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
#ifndef __COLLECT2_H__
|
|
#define __COLLECT2_H__
|
|
|
|
extern void do_tlink PARAMS ((char **, char **));
|
|
|
|
extern void collect_execute PARAMS ((const char *, char **, const char *));
|
|
|
|
extern void collect_exit PARAMS ((int)) ATTRIBUTE_NORETURN;
|
|
|
|
extern int collect_wait PARAMS ((const char *));
|
|
|
|
extern void dump_file PARAMS ((const char *));
|
|
|
|
extern int file_exists PARAMS ((const char *));
|
|
|
|
extern const char *ldout;
|
|
extern const char *c_file_name;
|
|
extern struct obstack temporary_obstack;
|
|
extern struct obstack permanent_obstack;
|
|
extern char *temporary_firstobj;
|
|
extern int vflag, debug;
|
|
|
|
extern void fancy_abort PARAMS ((void)) ATTRIBUTE_NORETURN;
|
|
extern void error PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
|
|
extern void notice PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
|
|
extern void fatal PARAMS ((const char *, ...))
|
|
ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
|
|
extern void fatal_perror PARAMS ((const char *, ...))
|
|
ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN;
|
|
|
|
#endif /* ! __COLLECT2_H__ */
|