+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
signal (SIGCHLD, SIG_DFL);
#endif
- if (atexit (collect_atexit) != 0)
- fatal_error ("atexit failed");
-
/* Unlock the stdio streams. */
unlock_std_streams ();
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. */
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