Fix PR 71873 - ICE in push_reload
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Wed, 10 Aug 2016 12:35:57 +0000 (12:35 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Wed, 10 Aug 2016 12:35:57 +0000 (12:35 +0000)
commit5250a5bbb098b302d251aaa116bc15f50e15c4c8
tree697a185a5ee8b6cffb31b6903f1e506ae94bca32
parentc4e9cff61cfdad1a86927019df6bf27abef2709f
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.

From-SVN: r239321
gcc/ChangeLog
gcc/reload.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/avr/pr71873.c [new file with mode: 0644]