On 07/28/2016 09:33 AM, Senthil Kumar Selvaraj wrote:
Is there a reason why only REG and SYMBOL_REFs get valid subreg_in_class? I tried extending it handle constants and PLUS expressions, and it fixes PR 71873. It also fixes a another bug that was a work around for the reload failure (PR 64452) - that had a plus expression instead of the const. Reg testing on avr and x86_64 did not show any new failures. Is this the right way to fix this?
I think it looks quite plausible. Note that testing x86_64 on trunk will not do anything - it is no longer using reload. Could you go back to an older branch (4.7 I think is the last one using reload) and retest x86_64 with that, for better test coverage?
Bernd