From: Ryan Mansfield Date: Fri, 27 Jul 2012 18:17:00 +0000 (+0000) Subject: Invoke GCC_DRIVER_HOST_INITIALIZATION after diagnostic_initialize X-Git-Tag: upstream/12.2.0~75038 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccbc132f872fbe614066238abd97301248f3d5f8;p=platform%2Fupstream%2Fgcc.git Invoke GCC_DRIVER_HOST_INITIALIZATION after diagnostic_initialize * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after diagnostic_initialize. From-SVN: r189918 --- 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");