aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authorIlya Tocar <ilya.tocar@intel.com>2014-11-19 11:48:48 +0000
committerIlya Tocar <tocarip@gcc.gnu.org>2014-11-19 14:48:48 +0300
commit877088b7659964d58bf9474519d8b637623e75a0 (patch)
tree09e0f66f4096b4ad121cd17382c88bca1391a13b /gcc/lto-wrapper.c
parent59392f46489fe395993a1c85da29167fbe670d36 (diff)
downloadgcc-877088b7659964d58bf9474519d8b637623e75a0.zip
gcc-877088b7659964d58bf9474519d8b637623e75a0.tar.gz
gcc-877088b7659964d58bf9474519d8b637623e75a0.tar.bz2
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
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 951a2dd..6b41782 100644
--- a/gcc/lto-wrapper.c
+++ b/gcc/lto-wrapper.c
@@ -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