> Does this happen on the GCC7 branch as well? The patch just guards an > indirect ref folding (I refrained from trying to make it correct given I > think it's premature optimization).
No, mainline and GCC 7 branch are fine. It appears that the folding (probably to BIT_FIELD_REF) is necessary to break apart the store on the 6 branch. > I'll try to investigate on Monday if you don't beat me to it. Feel free to > revert the backport in the meantime. No urgency, it's rather marginal. > Note I think you can trigger the same bug with some source changes > independent of the patch which means the GENERIC must be somehow invalid. Possibly so, yes. -- Eric Botcazou