[Bug tree-optimization/126889] New: ICE: Segmentation fault in path_range_query::ssa_range_in_phi during back_threader pass

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

            Bug ID: 126889
           Summary: ICE: Segmentation fault in
                    path_range_query::ssa_range_in_phi during
                    back_threader pass
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: defsyn at gmail dot com
  Target Milestone: ---

Created attachment 65341
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65341&action=edit
preprocessed source (dwarf.c)

GCC version: 17.0.0 (experimental unreleased master branch)
System: Debian x86_64
Building: binutils (dwarf.c) (close to latest pull (binutils-gdb, August
14,2026)
Building on x86_64-pc-linux-gnu AMD Debian Trixie
Host: x86_64-pc-linux-gnu
Binutils target: x86_64-w64-mingw32 

../../configure --prefix=/opt/mingw-gcc-17 --disable-gdb
--{build,host}=x86_64-pc-linux-gnu --target=x86_64-w64-mingw32
--with-{gmp,mpfr,mpc,isl}=/opt/gcc-depends
--enable-targets=x86_64-64-mingw32,i686-w64-mingw32

An internal compiler error occurs during the backward jump threading
optimization pass when compiling dwarf.c at -O2 with -march=broadwell.

Command line used to trigger the ICE:
gcc -c -I . -D HAVE_CONFIG_H ../../../src/binutils-gdb/binutils/dwarf.c
-mtune=broadwell -march=broadwell -g -O2

Stack trace:
internal compiler error: Segmentation fault
process_cu_tu_index (struct dwarf_section *section, int do_display)
path_range_query::ssa_range_in_phi(vrange&, gphi*)
path_range_query::range_defined_in_block(vrange&, tree_node*, basic_block_def*)
path_range_query::internal_range_of_expr(vrange&, tree_node*, gimple*)
back_threader::maybe_register_path

relevant error message: " ../../../src/binutils-gdb/binutils/dwarf.c:12639:1:
internal compiler error: Segmentation fault
12639 | process_cu_tu_index (struct dwarf_section *section, int do_display)"
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.