collect2.c: Include diagnostic.h.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 19 May 2011 16:25:12 +0000 (17:25 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 19 May 2011 16:25:12 +0000 (17:25 +0100)
commit9e350e99cb9f93ea99216c9c2a40517111636116
treed058c00dc1d7bc91f5480576092941a860ad9b64
parent86ff4081df5f17cefaff375ab48fa0685ea3c3f8
collect2.c: Include diagnostic.h.

* collect2.c: Include diagnostic.h.
(fatal_perror, fatal, error, fancy_abort): Remove.
(main): Set progname.  Call xmalloc_set_program_name and
diagnostic_initialize.
(maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
scan_libraries, resolve_lib_name): Call fatal_error instead of
fatal and fatal_perror.
* collect2.h (error, fatal, fatal_perror): Don't declare.
* tlink.c: Include diagnostic-core.h.
(recompile_files): Call fatal_error instead of fatal_perror.
* Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
pretty-print.o and input.o.
(collect2.o, tlink.o): Update dependencies.

testsuite:
* lib/prune.exe (prune_gcc_output): Expect "error:" in collect2
output.

From-SVN: r173915
gcc/ChangeLog
gcc/Makefile.in
gcc/collect2.c
gcc/collect2.h
gcc/testsuite/ChangeLog
gcc/testsuite/lib/prune.exp
gcc/tlink.c