This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/71535] New: ICE in LTO1 with -fopenmp offloading
- From: "bisqwit at iki dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2016 19:06:00 +0000
- Subject: [Bug lto/71535] New: ICE in LTO1 with -fopenmp offloading
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71535
Bug ID: 71535
Summary: ICE in LTO1 with -fopenmp offloading
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: bisqwit at iki dot fi
Target Milestone: ---
With this example program:
#include <algorithm>
void Process(unsigned* Target)
{
for(int s=0; s<4; ++s)
Target[s] = 100u * std::min(255, std::max(0, 0))
+ 200u * std::min(255, std::max(0, 0));
}
int main()
{
#pragma omp target teams distribute parallel for
for(unsigned y=0; y<16; ++y)
{
unsigned Line[16];
Process(Line);
}
}
g++ tmps.cc -fopenmp
lto1: internal compiler error: in input_overwrite_node, at lto-cgraph.c:1203
0x82f4d5 input_overwrite_node
../../gcc/lto-cgraph.c:1201
0x82f4d5 input_node
../../gcc/lto-cgraph.c:1296
0x82f4d5 input_cgraph_1
../../gcc/lto-cgraph.c:1546
0x82f4d5 input_symtab()
../../gcc/lto-cgraph.c:1849
0x5c657b read_cgraph_and_symbols
../../gcc/lto/lto.c:2856
0x5c657b lto_main()
../../gcc/lto/lto.c:3304
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
mkoffload-intelmic: fatal error:
x86_64-pc-linux-gnu-accel-x86_64-intelmicemul-linux-gnu-gcc returned 1 exit
status
compilation terminated.
lto-wrapper: fatal error:
/usr/local/libexec/gcc/x86_64-pc-linux-gnu/6.1.0//accel/x86_64-intelmicemul-linux-gnu/mkoffload
returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
GCC version: 6.1.0
This bug is very likely related to PR71499.