[Bug tree-optimization/102560] New: [12 Regression] g++.dg/Walloca1.C ICE with aggressive GC

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Oct 2 00:59:24 GMT 2021


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

            Bug ID: 102560
           Summary: [12 Regression] g++.dg/Walloca1.C ICE with aggressive
                    GC
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: GC, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jason at gcc dot gnu.org
  Target Milestone: ---

When I run make check-g++-strict-gc, which adds the flags

  --param ggc-min-heapsize=0 --param ggc-min-expand=0

the compiler ICEs in Walloca1.C with

wa.ii: In function ‘void __static_initialization_and_destruction_0(int, int)’:
wa.ii:7:52: internal compiler error: Segmentation fault
    7 | char *b = static_cast<char *>(__builtin_alloca (a));
      |                                                    ^
0x176fa90 crash_signal
        /home/jason/gt/gcc/toplev.c:331
0xacb5b2 contains_struct_check(tree_node const*, tree_node_structure_enum, char
const*, int, char const*)
        /home/jason/gt/gcc/tree.h:3802
0xb64c70 wi::to_wide(tree_node const*)
        /home/jason/gt/gcc/tree.h:6092
0x1bf0ce6 irange::irange_intersect(irange const&)
        /home/jason/gt/gcc/value-range.cc:1684
0x1bf01fa irange::intersect(irange const*)
        /home/jason/gt/gcc/value-range.cc:1514
0x1bea82b irange::intersect(irange const&)
        /home/jason/gt/gcc/value-range.h:549
0x2bdd28d alloca_call_type
        /home/jason/gt/gcc/gimple-ssa-warn-alloca.c:229
0x2bdd574 pass_walloca::execute(function*)
        /home/jason/gt/gcc/gimple-ssa-warn-alloca.c:293

I don't get the same crash with my GCC 11 branch compiler.


More information about the Gcc-bugs mailing list