[Bug target/126886] [17 Regression] Build failure on POWER: ICE in path_range_query since r17-3298

"tkoenig at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126886

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[17 Regression] Build       |[17 Regression] Build
                   |failure in path_range_query |failure on POWER: ICE in
                   |                            |path_range_query since
                   |                            |r17-3298
   Target Milestone|---                         |17.0
           Keywords|                            |build
                 CC|                            |amacleod at redhat dot com

--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Confirmed:

36cb4ed48c987a4a9027cb14e6b6e1edeebcaf3 is the first bad commit
commit 836cb4ed48c987a4a9027cb14e6b6e1edeebcaf3
Author: Andrew MacLeod <[email protected]>
Date:   Wed Aug 12 17:03:21 2026 -0400

    fold_using_range should set the current query.

            PR tree-optimization/126814
            gcc/
            * gimple-range-fold.cc (fold_using_range::fold_stmt): Temporarily
            replace the current range query with the specified one.

            gcc/testsuite/
            * gcc.dg/pr126814.c: New.

 gcc/gimple-range-fold.cc        | 59 ++++++++++++++++++++++++-----------------
 gcc/testsuite/gcc.dg/pr126814.c | 17 ++++++++++++
 2 files changed, 52 insertions(+), 24 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/pr126814.c
bisect found first bad commit
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.