Fix PR 71873 - ICE in push_reload
commit5186407c975ccaf3cc5d035a63fde9e007ab8adf
authorsaaadhu <saaadhu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Aug 2016 12:35:57 +0000 (10 12:35 +0000)
committersaaadhu <saaadhu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Aug 2016 12:35:57 +0000 (10 12:35 +0000)
tree697a185a5ee8b6cffb31b6903f1e506ae94bca32
parent081a6ff0f79d63a83a561d8178baabcad5c7ff08
Fix PR 71873 - ICE in push_reload

Extend computation of subreg_in_class to constants and plus expressions
inside SUBREGs, before recursively calling push_reload. SYMBOL_REFs are
also CONSTANT_P, so remove explicit handling of SYMBOL_REFs.

gcc/ChangeLog

PR target/71873
* reload.c (push_reload): Compute subreg_in_class for
subregs of constants and plus expressions. Remove special
handling of SYMBOL_REFs.

gcc/testsuite/ChangeLog

PR target/71873
* gcc.target/avr/pr71873.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239321 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/reload.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/pr71873.c [new file with mode: 0644]