[Bug c/94392] [10 Regression] Infinite loops are optimized away for C99

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 30 08:21:08 GMT 2020


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.


More information about the Gcc-bugs mailing list