https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89713

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
            Version|unknown                     |9.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
We could add a GCC specific loop pragma, like

#pragma GCC finite-loop

to annotate such loops in the libstdc++ implementation.  But if the user
writes this then somehow the C++ frontend would need to detect that
he wrote a finite loop and annotate the loop, so I'm not sure how practical
this is.

But I also doubt people write empty loops in practice?  Thus how important
is this really?

Reply via email to