> -----Ursprüngliche Nachricht----- > Von: Alexander Monakov <amonakov@xxxxxxxxx> > Gesendet: Donnerstag, 14. Januar 2021 16:33 > An: stefan@xxxxxxxxx > Cc: gcc-help@xxxxxxxxxxx > Betreff: Re: AW: m68k: Simple loop compiles into boundless recursion with - > O2 > > On Thu, 14 Jan 2021, Stefan Franke wrote: > > > Sorry, but I can't reproduce that 'dropping' of other options. I > > played around here: https://franke.ms/cex/z/EnK1GY Could you please > > provide a reproduceable example? > > It is easily reproducible on x86: https://godbolt.org/z/Mx1KMe > > Kernel people hit this issue recently when attemping to use the attribute: > https://lore.kernel.org/lkml/alpine.LSU.2.21.2004151445520.11688@wotan.s > use.de/ > > Alexander Changing -Os to -O2 or other -O* options still do work... ... but: it kills the -fno-omit-frame-pointer So you need to be careful if using attributed options - as with every tweaking. Stefan