From ccbc132f872fbe614066238abd97301248f3d5f8 Mon Sep 17 00:00:00 2001 From: Ryan Mansfield Date: Fri, 27 Jul 2012 18:17:00 +0000 Subject: [PATCH] Invoke GCC_DRIVER_HOST_INITIALIZATION after diagnostic_initialize * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after diagnostic_initialize. From-SVN: r189918 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 66406b3..82bc3d1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-07-20 Ryan Mansfield + + * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after + diagnostic_initialize. + 2012-07-27 Oleg Endo PR target/54089 diff --git a/gcc/gcc.c b/gcc/gcc.c index 116cf5d..bda354a 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -6189,17 +6189,18 @@ main (int argc, char **argv) CL_DRIVER, &decoded_options, &decoded_options_count); -#ifdef GCC_DRIVER_HOST_INITIALIZATION - /* Perform host dependent initialization when needed. */ - GCC_DRIVER_HOST_INITIALIZATION; -#endif - /* Unlock the stdio streams. */ unlock_std_streams (); gcc_init_libintl (); diagnostic_initialize (global_dc, 0); + +#ifdef GCC_DRIVER_HOST_INITIALIZATION + /* Perform host dependent initialization when needed. */ + GCC_DRIVER_HOST_INITIALIZATION; +#endif + if (atexit (delete_temp_files) != 0) fatal_error ("atexit failed"); -- 2.7.4