Hi, As analyzed in PR62032, this patch fixes the latent lto bug by switching arguments of lto_define_builtins, otherwise vsnprintf-chk.c would fail on arm/aarch64 with lto options.
Is it ok if bootstrap and test pass? 2014-08-07 Bin Cheng <bin.ch...@arm.com> PR lto/62032 * lto/lto-lang.c (lto_init): Switch mis-matched arguments.
Index: gcc/lto/lto-lang.c =================================================================== --- gcc/lto/lto-lang.c (revision 213698) +++ gcc/lto/lto-lang.c (working copy) @@ -1192,10 +1192,10 @@ lto_init (void) } else { - lto_define_builtins (va_list_type_node, - build_reference_type (va_list_type_node)); + lto_define_builtins (build_reference_type (va_list_type_node), + va_list_type_node); } - + if (flag_cilkplus) cilk_init_builtins ();