aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.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/collect2.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/collect2.c')
-rw-r--r--gcc/collect2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 7c067ff..9c3a1c5 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -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. */