summaryrefslogtreecommitdiff
path: root/gcc/collect2.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-03 19:13:34 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-09-03 19:13:34 +0000
commite504db4a7d115668ff9ff0aebd7c819b2beb63c3 (patch)
tree22ab06cab899e64f8be5b78f963f880fe8dbfd60 /gcc/collect2.h
parent1e1ac3c22528492767a04d236879ab61242ac7ea (diff)
downloadgcc-e504db4a7d115668ff9ff0aebd7c819b2beb63c3.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29087 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.h')
-rw-r--r--gcc/collect2.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/gcc/collect2.h b/gcc/collect2.h
index 04844bcd362..87c06f59ea6 100644
--- a/gcc/collect2.h
+++ b/gcc/collect2.h
@@ -23,14 +23,29 @@ Boston, MA 02111-1307, USA. */
extern void do_tlink PARAMS ((char **, char **));
-extern void collect_execute PARAMS ((char *, 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 ((char *));
+extern int collect_wait PARAMS ((const char *));
-extern void dump_file PARAMS ((char *));
+extern void dump_file PARAMS ((const char *));
-extern int file_exists PARAMS ((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__ */