[Bug tree-optimization/123300] [14/15/16 Regression] Adding [[assume((1<<i) > 0)]]/__builtin_unreachable generates an infinite loop

mikpelinux at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Dec 26 13:48:56 GMT 2025


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

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #4 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Created attachment 63161
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63161&action=edit
test case in plain c

Started with r14-4141-gbf6b107e2a3423:

bf6b107e2a342319b3787ec960fc8014ef3aff91 is the first new commit
commit bf6b107e2a342319b3787ec960fc8014ef3aff91
Author: Andrew MacLeod <amacleod@redhat.com>
Date:   Wed Sep 13 11:52:15 2023 -0400

    New early __builtin_unreachable processing.


More information about the Gcc-bugs mailing list