[Bug lto/51726] LTO and attribute 'selectany'

d.g.gorbachev at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Aug 8 02:09:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51726

Dmitry Gorbachev <d.g.gorbachev at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #3 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> ---
The attached patch does not work in GCC 4.10.0 - stream_read_tree() returns
NULL in lto_read_tree_1() (gcc/lto-streamer-in.c:1184):

>        DECL_INITIAL (expr) = stream_read_tree (ib, data_in);

`bar' is treated as a common var.



More information about the Gcc-bugs mailing list