https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94392
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Infinite loops are |[10 Regression] Infinite |optimized away for C99 |loops are optimized away | |for C99 Target Milestone|--- |10.0 CC| |jsm28 at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Infinite loops do not make much sense so the consensus was to enable it everywhere by default (also for non-C/C++ languages). Joseph, any opinion whether we should make the default language (standard) dependent? It'll be tracked per function with LTO but inlining currently does not care about caller/callees state difference.