Re: [PATCH] Fix PR80222

2017-05-15 Thread Richard Biener
On Sat, 13 May 2017, Eric Botcazou wrote: > > 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 th

Re: [PATCH] Fix PR80222

2017-05-13 Thread Eric Botcazou
> 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 t

Re: [PATCH] Fix PR80222

2017-05-13 Thread Richard Biener
On May 13, 2017 10:49:31 AM GMT+02:00, Eric Botcazou wrote: >> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to >trunk. >> >> Richard. >> >> 2017-03-28 Richard Biener >> >> PR middle-end/80222 >> * gimple-fold.c (gimple_fold_indirect_ref): Do not touch >> TYPE_

Re: [PATCH] Fix PR80222

2017-05-13 Thread Eric Botcazou
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. > > Richard. > > 2017-03-28 Richard Biener > > PR middle-end/80222 > * gimple-fold.c (gimple_fold_indirect_ref): Do not touch > TYPE_REF_CAN_ALIAS_ALL references. > * fold-const.c (fold_indirect_r