https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54231
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |7.2 --- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #15) > I suspect this has been fixed since maybe GCC 8 (maybe GCC 7). The use-case should now indeed work fine by means of recording all optimization and target options per function and restricting inlining. I think it was fixed in GCC 7 or even earlier.