re PR middle-end/65003 (-fsection-anchors ICE)
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Feb 2015 15:09:48 +0000 (16:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Feb 2015 15:09:48 +0000 (16:09 +0100)
commit3292dd408163da24f70fb93e962d0b9cdf20f74a
treee5f86c81bfe3b01ac68e6e8a3ea54b48e9ba6241
parentce888a99a964f06c912b90dd75a55b79f93c86cd
re PR middle-end/65003 (-fsection-anchors ICE)

PR middle-end/65003
* varasm.c (place_block_symbol): Assert that DECL_RTL of the
ultimate alias is MEM with SYMBOL_REF satisfying
SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
to place_block_symbol, but instead pass the SYMBOL_REF operand of it.

* g++.dg/opt/pr65003.C: New test.

From-SVN: r220625
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr65003.C [new file with mode: 0644]
gcc/varasm.c