re PR lto/48437 (LTO crashes with block-local function declarations)
authorRichard Guenther <rguenther@suse.de>
Thu, 8 Dec 2011 08:50:35 +0000 (08:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 Dec 2011 08:50:35 +0000 (08:50 +0000)
commitc37257a1f686bdd260a2edc445f8b3f24dceec2e
tree704e59c3933823639810c63e24aef23672bd795e
parenta633b93ea34210dcb8ce06c7bfb3df8efd7c3fbc
re PR lto/48437 (LTO crashes with block-local function declarations)

2011-12-08  Richard Guenther  <rguenther@suse.de>

PR lto/48437
* lto-streamer-out.c (tree_is_indexable): Exclude block-local
extern declarations.

* gcc.dg/lto/20111207-2_0.c: New testcase.
* gcc.dg/guality/pr48437.c: Likewise.

From-SVN: r182100
gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/pr48437.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/20111207-2_0.c [new file with mode: 0644]