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

            Bug ID: 116850
           Summary: ICE at -O{s,2,3} on x86_64-linux-gnu: in
                    verify_dominators, at dominance.cc:1194
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhendong.su at inf dot ethz.ch
  Target Milestone: ---

Compiler Explorer: https://godbolt.org/z/9efqrq61x

[591] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk
--enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.0.0 20240926 (experimental) (GCC) 
[592] % 
[592] % gcctk -Os -c -w small.c
small.c: In function ā€˜cā€™:
small.c:2:6: error: dominator of 6 should be 8, not 1
    2 | int *c() {
      |      ^
small.c:2:6: error: dominator of 8 status unknown
during GIMPLE pass: isolate-paths
small.c:2:6: internal compiler error: in verify_dominators, at
dominance.cc:1194
0x25d8715 internal_error(char const*, ...)
        ../../gcc-trunk/gcc/diagnostic-global-context.cc:517
0xa76312 fancy_abort(char const*, int, char const*)
        ../../gcc-trunk/gcc/diagnostic.cc:1512
0x7cc2c6 verify_dominators(cdi_direction)
        ../../gcc-trunk/gcc/dominance.cc:1194
0xcb2d61 checking_verify_dominators(cdi_direction)
        ../../gcc-trunk/gcc/dominance.h:76
0xcb2d61 calculate_dominance_info(cdi_direction, bool)
        ../../gcc-trunk/gcc/dominance.cc:755
0x23b10d9 warn_return_addr_local
        ../../gcc-trunk/gcc/gimple-ssa-isolate-paths.cc:806
0x23b10d9 find_explicit_erroneous_behavior
        ../../gcc-trunk/gcc/gimple-ssa-isolate-paths.cc:883
0x23b10d9 gimple_ssa_isolate_erroneous_paths
        ../../gcc-trunk/gcc/gimple-ssa-isolate-paths.cc:935
0x23b10d9 execute
        ../../gcc-trunk/gcc/gimple-ssa-isolate-paths.cc:989
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
[593] % 
[593] % cat small.c
int a, b;
int *c() {
  int d, *e = 0, *f = &d, *g = &a;
  if (b)
    g = 0;
  *e = *g;
  return f;
}

Reply via email to