http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48508
--- Comment #16 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-15 09:44:17 UTC --- Author: rguenth Date: Thu Dec 15 09:44:11 2011 New Revision: 182358 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182358 Log: 2012-12-15 Richard Guenther <rguent...@suse.de> Revert PR lto/48437 * lto-streamer-out.c (tree_is_indexable): Exclude block-local extern declarations. PR lto/48508 PR lto/48437 * tree-streamer-out.c (streamer_write_chain): Stream DECL_EXTERNAL VAR_DECLs and FUNCTION_DECLs locally. * g++.dg/lto/pr48508-1_0.C: New testcase. * g++.dg/lto/pr48508-1_1.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/lto/pr48508-1_0.C trunk/gcc/testsuite/g++.dg/lto/pr48508-1_1.C Modified: trunk/gcc/ChangeLog trunk/gcc/lto-streamer-out.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-streamer-out.c