OSDN Git Service

2012-12-15 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2011 09:44:11 +0000 (09:44 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2011 09:44:11 +0000 (09:44 +0000)
commitc75a2739c2dd84336557e95cf655eceb163fc341
tree42ee680c41066552ec1065a5355d39eb26b5f7e4
parent587048d095d14538c0e2b1424b114f9998620d81
2012-12-15  Richard Guenther  <rguenther@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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182358 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/pr48508-1_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/pr48508-1_1.C [new file with mode: 0644]
gcc/tree-streamer-out.c