collect2.c (main): Don't call fatal_error before diagnostic_initialize.
gcc/ 2014-11-19 Ilya Tocar <ilya.tocar@intel.com> * collect2.c (main): Don't call fatal_error before diagnostic_initialize. * lto-wrapper.c (main): Likewise. From-SVN: r217765
This commit is contained in:
parent
59392f4648
commit
877088b765
3 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-11-19 Ilya Tocar <ilya.tocar@intel.com>
|
||||
|
||||
* collect2.c (main): Don't call fatal_error before
|
||||
diagnostic_initialize.
|
||||
* lto-wrapper.c (main): Likewise.
|
||||
|
||||
2014-11-19 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR tree-optimization/62167
|
||||
|
|
|
@ -955,9 +955,6 @@ main (int argc, char **argv)
|
|||
signal (SIGCHLD, SIG_DFL);
|
||||
#endif
|
||||
|
||||
if (atexit (collect_atexit) != 0)
|
||||
fatal_error ("atexit failed");
|
||||
|
||||
/* Unlock the stdio streams. */
|
||||
unlock_std_streams ();
|
||||
|
||||
|
@ -965,6 +962,9 @@ main (int argc, char **argv)
|
|||
|
||||
diagnostic_initialize (global_dc, 0);
|
||||
|
||||
if (atexit (collect_atexit) != 0)
|
||||
fatal_error ("atexit failed");
|
||||
|
||||
/* Do not invoke xcalloc before this point, since locale needs to be
|
||||
set first, in case a diagnostic is issued. */
|
||||
|
||||
|
|
|
@ -1314,13 +1314,13 @@ main (int argc, char *argv[])
|
|||
|
||||
xmalloc_set_program_name (progname);
|
||||
|
||||
if (atexit (lto_wrapper_cleanup) != 0)
|
||||
fatal_error ("atexit failed");
|
||||
|
||||
gcc_init_libintl ();
|
||||
|
||||
diagnostic_initialize (global_dc, 0);
|
||||
|
||||
if (atexit (lto_wrapper_cleanup) != 0)
|
||||
fatal_error ("atexit failed");
|
||||
|
||||
if (signal (SIGINT, SIG_IGN) != SIG_IGN)
|
||||
signal (SIGINT, fatal_signal);
|
||||
#ifdef SIGHUP
|
||||
|
|
Loading…
Add table
Reference in a new issue