https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71499
--- Comment #1 from Joel Yliluoma <bisqwit at iki dot fi> --- Addendum: While this works, reading LTO data and producing HOST code: /usr/local/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/lto1 -dumpbase tmpe.o -auxbase tmpe -version -fopenacc tmpe.o -o /tmp/ccZgHvRO.s This does not: /usr/local/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/accel/nvptx-none/lto1 -dumpbase tmpe.o -auxbase tmpe -version -fopenacc tmpe.o -o /tmp/ccZgHvRO.s GNU GIMPLE (GCC) version 6.1.0 (nvptx-none) compiled by GNU C version 6.1.0, GMP version 6.0.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU GIMPLE (GCC) version 6.1.0 (nvptx-none) compiled by GNU C version 6.1.0, GMP version 6.0.0, MPFR version 3.1.4, MPC version 1.0.3, isl version 0.15 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 options passed: -fopenacc tmpe.o options enabled: -faggressive-loop-optimizations -fauto-inc-dec -fchkp-check-incomplete-type -fchkp-check-read -fchkp-check-write -fchkp-instrument-calls -fchkp-narrow-bounds -fchkp-optimize -fchkp-store-bounds -fchkp-use-static-bounds -fchkp-use-static-const-bounds -fchkp-use-wrappers -fcommon -fdelete-null-pointer-checks -fearly-inlining -feliminate-unused-debug-types -ffunction-cse -fgcse-lm -fgnu-runtime -fgnu-unique -fident -finline-atomics -fipa-pta -fira-hoist-pressure -fira-share-save-slots -fira-share-spill-slots -fivopts -fkeep-static-consts -fleading-underscore -flifetime-dse -flto-odr-type-merging -fmath-errno -fmerge-debug-strings -fpeephole -fplt -fprefetch-loop-arrays -freg-struct-return -fsched-critical-path-heuristic -fsched-dep-count-heuristic -fsched-group-heuristic -fsched-interblock -fsched-last-insn-heuristic -fsched-rank-heuristic -fsched-spec -fsched-spec-insn-heuristic -fsched-stalled-insns-dep -fschedule-fusion -fsemantic-interposition -fshow-column -fsigned-zeros -fsplit-ivs-in-unroller -fssa-backprop -fstdarg-opt -fstrict-volatile-bitfields -fsync-libcalls -ftoplevel-reorder -ftrapping-math -ftree-cselim -ftree-forwprop -ftree-loop-if-convert -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize -ftree-parallelize-loops= -ftree-phiprop -ftree-reassoc -ftree-scev-cprop -funit-at-a-time -fvar-tracking-assignments -fzero-initialized-in-bss -m64 Reading object files: tmpe.o {GC start 776k} Reading the callgraph lto1: internal compiler error: in input_overwrite_node, at lto-cgraph.c:1203 0x7a73c5 input_overwrite_node ../../gcc/lto-cgraph.c:1201 0x7a73c5 input_node ../../gcc/lto-cgraph.c:1296 0x7a73c5 input_cgraph_1 ../../gcc/lto-cgraph.c:1546 0x7a73c5 input_symtab() ../../gcc/lto-cgraph.c:1849 0x5537fb read_cgraph_and_symbols ../../gcc/lto/lto.c:2856 0x5537fb 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. I also tried using different combinations of --enable-languages=c,c++,lto , --enable-lto , including neither, but none affected the problem. I also tried using the svn version of gcc, but it also exhibited the same problem. The nvptx-newlib revision is aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24 and nvptx-tools revision is c28050f60193b3b95a18866a96f03334e874e78f.