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

            Bug ID: 95320
           Summary: [11 Regression] ICE in odr_type_p, at ipa-utils.h:246,
                    during IPA pass: pure-const
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: ams at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

For some reason, this only occurs when compiling for AMDGCN and it seems to be
a recent regression.

The issue seems to affect nearly all testcases in libgomp, I get 2500+ FAIL.

For instance
  gcc -fopenmp libgomp/testsuite/libgomp.c-c++-common/for-11.c
fails as:

during IPA pass: fnsummary
src/gcc-mainline/libgomp/testsuite/libgomp.c-c++-common/for-11.c:5: internal
compiler error: in odr_type_p, at ipa-utils.h:246
0x8b3ccf odr_type_p(tree_node const*)
        gcc-mainline/gcc/ipa-utils.h:246
0x8b3ccf local_tree_p
        gcc-mainline/gcc/lto-streamer-out.c:594
0x8b3ccf DFS::DFS(output_block*, tree_node*, bool, bool, bool)
        gcc-mainline/gcc/lto-streamer-out.c:639


Breakpoint 1, DFS::DFS(output_block*, tree_node*, bool, bool, bool) () at
gcc-mainline/gcc/lto-streamer-out.c:639
639               if (ob->local_trees && local_tree_p (expr))
(gdb) p ob
$1 = <optimized out>
(gdb) p expr
$2 = (tree) 0x7ffff734ac78
(gdb) p debug_tree(expr)
 <record_type 0x7ffff734ac78 .omp_data_t.89 TI

Reply via email to