https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71873
--- Comment #1 from Senthil Kumar Selvaraj <saaadhu at gcc dot gnu.org> --- Author: saaadhu Date: Wed Aug 10 12:35:57 2016 New Revision: 239321 URL: https://gcc.gnu.org/viewcvs?rev=239321&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.target/avr/pr71873.c Modified: trunk/gcc/ChangeLog trunk/gcc/reload.c trunk/gcc/testsuite/ChangeLog