Record the global variables if WPA isn't enabled
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2012 14:43:54 +0000 (14:43 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 10 Dec 2012 14:43:54 +0000 (14:43 +0000)
commitf2c28d6b80106b068f8c58b88f3b3ff8adec75ee
tree600079d432d10777a0372663aba17b59c1136cbd
parenta8d903a4ddcdb2a91a1837ccb7acabd95e98c18e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194359 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lto-symtab.c
gcc/lto/lto.c