> > > > Actually on second thought, I think I can break this either by making > > the wraping function to be thunk or alias or by moving it to different > > compilation unit. > > Also with LTO we will get body later. > > > > So I think we need to drop this optimization. > > It's the same condition guarding the set_{const,pure}_flag call earlier > (but yes, I agree). So it isn't covered by the regression so we > should address this for next stage1.
I will do that next stage1 then. This bug is mine and it there for a long time (it doesn't even need LTO to reproduce). So it may be regression relative to pre-tree-ssa gccs but fixing such bug can wait for 13.2. Honza