https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88460
Bug ID: 88460
Summary: [nvptx] FAIL: libgomp.c++/for-24.C (internal compiler
error)
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
In more detail:
...
lto1: internal compiler error: in input_varpool_node, at lto-cgraph.c:1371^M
0x987a5b input_varpool_node^M
/home/vries/oacc/trunk/source-gcc/gcc/lto-cgraph.c:1369^M
0x987a5b input_cgraph_1^M
/home/vries/oacc/trunk/source-gcc/gcc/lto-cgraph.c:1491^M
0x987a5b input_symtab()^M
/home/vries/oacc/trunk/source-gcc/gcc/lto-cgraph.c:1681^M
0x5bfafc read_cgraph_and_symbols^M
/home/vries/oacc/trunk/source-gcc/gcc/lto/lto.c:2878^M
0x5bfafc lto_main()^M
/home/vries/oacc/trunk/source-gcc/gcc/lto/lto.c:3362^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
Please include the complete backtrace with any bug report.^M
See <https://gcc.gnu.org/bugs/> for instructions.^M
mkoffload: fatal error:
/home/vries/oacc/trunk/install/offload-nvptx-none/bin//x86_64-pc-linux-gnu-accel-nvptx-no\
ne-gcc returned 1 exit status^M
compilation terminated.^M
lto-wrapper: fatal error:
/home/vries/oacc/trunk/install/offload-nvptx-none/libexec/gcc/x86_64-pc-linux-gnu/9.0.0\
//accel/nvptx-none/mkoffload returned 1 exit status^M
compilation terminated.^M
/usr/bin/ld.bfd.real: error: lto-wrapper failed^M
collect2: error: ld returned 1 exit status^M
FAIL: libgomp.c++/for-24.C (internal compiler error)
FAIL: libgomp.c++/for-24.C (test for excess errors)
...
It's this assert that's failing:
...
1369 gcc_assert (flag_ltrans
1370 || (!node->in_other_partition
1371 && !node->used_from_other_partition));
...
because:
...
(gdb) p flag_ltrans
No symbol "flag_ltrans" in current context.
(gdb) p node->in_other_partition
$1 = 1
(gdb) p node->used_from_other_partition
$2 = 0
(gdb) p global_options.x_flag_ltrans
$3 = 0
...
for node:
...
(gdb) call debug_generic_expr (node.decl)
results
...