Record the global variables if WPA isn't enabled
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 10 Dec 2012 14:43:54 +0000 (14:43 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 10 Dec 2012 14:43:54 +0000 (06:43 -0800)
commit570e71f8a0c70ccbbdc2f167a8debba09d198862
tree600079d432d10777a0372663aba17b59c1136cbd
parent4bcc5786cca9aa729d2f3a94448dae22fd5f114b
Record the global variables if WPA isn't enabled

PR lto/55466
* lto-symtab.c (lto_symtab_merge_decls_1): Don't record the
prevailing variable.
* lto.c (lto_register_var_decl_in_symtab): Don't record static
variables.
(lto_main): Record the global variables if WPA isn't enabled.

From-SVN: r194359
gcc/ChangeLog
gcc/lto-symtab.c
gcc/lto/lto.c