Bug 83524 - [8 Regression] bootstrap fails build a nvptx cross: ICE in get_insn_template, at final.c:2099
Summary: [8 Regression] bootstrap fails build a nvptx cross: ICE in get_insn_template,...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: 8.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2017-12-21 08:09 UTC by Matthias Klose
Modified: 2018-01-07 22:23 UTC (History)
2 users (show)

See Also:
Host:
Target: nvptx-none
Build:
Known to work: 7.2.1
Known to fail: 8.0
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2017-12-21 08:09:54 UTC
seen with trunk 20171221, r255910

libtool: compile:  /<<PKGBUILDDIR>>/build-nvptx/./gcc/xgcc -B/<<PKGBUILDDIR>>/build-nvptx/./
gcc/ -nostdinc -B/<<PKGBUILDDIR>>/build-nvptx/nvptx-none/newlib/ -isystem /<<PKGBUILDDIR>>/build-nvptx/nvptx-none/
newlib/targ-include -isystem /<<PKGBUILDDIR>>/src/newlib/libc/include -B/usr/nvptx-none/bin/ -B/usr/nvptx-none/lib
/ -isystem /usr/nvptx-none/include -isystem /usr/nvptx-none/sys-include -isystem /<<PKGBUILDDIR>>/build-nvptx/sys-
include -DHAVE_CONFIG_H -I. -I../../../../src/libgomp -I../../../../src/libgomp/config/nvptx -I../../../../src/lib
gomp -I../../../../src/libgomp/../include -Wall -Werror -g -O2 -mgomp -MT task.lo -MD -MP -MF .deps/task.Tpo -c ..
/../../../src/libgomp/config/nvptx/task.c -o task.o

during RTL pass: final
In file included from ../../../../src/libgomp/config/nvptx/task.c:41:
../../../../src/libgomp/config/nvptx/../../task.c: In function 'gomp_create_target_task':
../../../../src/libgomp/config/nvptx/../../task.c:778:1: internal compiler error: in get_insn_template, at final.c:2099
 }
 ^
0x825997 get_insn_template(int, rtx_def*)
        ../../src/gcc/final.c:2099
0x82781d final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        ../../src/gcc/final.c:3028
0x827ce4 final(rtx_insn*, _IO_FILE*, int)
        ../../src/gcc/final.c:2064
0x82841f rest_of_handle_final
        ../../src/gcc/final.c:4550
0x82841f execute
        ../../src/gcc/final.c:4624
Please submit a full bug report,
with preprocessed source if appropriate.

the offload compiler configured with

configure --prefix=/usr --libexecdir=/usr/lib --with-gcc-major-version-only --disable-bootstrap --disa
ble-sjlj-exceptions --enable-newlib-io-long-long --target nvptx-none --enable-as-accelerator-for=x86_64-linux-gnu 
--enable-languages=c,c++,fortran,lto --enable-checking=release --with-system-zlib --without-isl --program-prefix=n
vptx-none- --program-suffix=-8
Comment 1 Jakub Jelinek 2018-01-07 19:15:49 UTC
Can't reproduce with current trunk.
Comment 2 Matthias Klose 2018-01-07 22:23:04 UTC
yes, at least r256272 builds.