https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69491
Bug ID: 69491 Summary: [6 Regression] [CHKP] gcc.dg/lto/chkp-wrap-asm-name ICEs with -fno-use-linker-plugin (verify_cgraph_node failed) Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Target Milestone: --- Target: x86_64-linux-gnu x86_64-linux-gnu (Fedora 23) testsuite run with RUNTESTFLAGS="--target_board=unix/-fno-use-linker-plugin" triggers following testsuite failure: FAIL: gcc.dg/lto/chkp-wrap-asm-name c_lto_chkp-wrap-asm-name_0.o-c_lto_chkp-wrap-asm-name_0.o link, -O2 -flto -fcheck-pointer-bounds -mmpx (internal compiler error) UNRESOLVED: gcc.dg/lto/chkp-wrap-asm-name c_lto_chkp-wrap-asm-name_0.o-c_lto_chkp-wrap-asm-name_0.o execute -O2 -flto -fcheck-pointer-bounds -mmpx The testsuite log shows: Executing on host: /ssd/uros/gcc-build/gcc/xgcc -B/ssd/uros/gcc-build/gcc/ -fno-use-linker-plugin -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt/.libs -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap/.libs -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto -fcheck-pointer-bounds -mmpx -c -o c_lto_chkp-wrap-asm-name_0.o /home/uros/gcc-svn/trunk/gcc/testsuite/gcc.dg/lto/chkp-wrap-asm-name_0.c (timeout = 300) spawn -ignore SIGHUP /ssd/uros/gcc-build/gcc/xgcc -B/ssd/uros/gcc-build/gcc/ -fno-use-linker-plugin -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt/.libs -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap/.libs -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto -fcheck-pointer-bounds -mmpx -c -o c_lto_chkp-wrap-asm-name_0.o /home/uros/gcc-svn/trunk/gcc/testsuite/gcc.dg/lto/chkp-wrap-asm-name_0.c PASS: gcc.dg/lto/chkp-wrap-asm-name c_lto_chkp-wrap-asm-name_0.o assemble, -O2 -flto -fcheck-pointer-bounds -mmpx Executing on host: /ssd/uros/gcc-build/gcc/xgcc -B/ssd/uros/gcc-build/gcc/ c_lto_chkp-wrap-asm-name_0.o -fno-use-linker-plugin -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt/.libs -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap/.libs -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto -fcheck-pointer-bounds -mmpx -o gcc-dg-lto-chkp-wrap-asm-name-01.exe (timeout = 300) spawn -ignore SIGHUP /ssd/uros/gcc-build/gcc/xgcc -B/ssd/uros/gcc-build/gcc/ c_lto_chkp-wrap-asm-name_0.o -fno-use-linker-plugin -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxrt/.libs -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/ -B/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap -L/ssd/uros/gcc-build/x86_64-pc-linux-gnu/./libmpx/mpxwrap/.libs -fno-diagnostics-show-caret -fdiagnostics-color=never -O2 -flto -fcheck-pointer-bounds -mmpx -o gcc-dg-lto-chkp-wrap-asm-name-01.exe lto1: error: Instrumentation clone does not reference original node test1/0 (test1) @0x7fc0ac967730 Type: function definition analyzed Visibility: externally_visible public References: test1.chkp/7 (chkp) Referring: Read from file: c_lto_chkp-wrap-asm-name_0.o Availability: available First run: 0 Function flags: Thunk fixed offset 0 virtual value 0 has virtual offset 0) Called by: Calls: test1.chkp/7 (1.00 per call) Has instrumented version. lto1: internal compiler error: verify_cgraph_node failed 0x66e64b cgraph_node::verify_node() /home/uros/gcc-svn/trunk/gcc/cgraph.c:3229 0x663f94 symtab_node::verify() /home/uros/gcc-svn/trunk/gcc/symtab.c:1177 0x66406f symtab_node::verify_symtab_nodes() /home/uros/gcc-svn/trunk/gcc/symtab.c:1197 0x88af60 symtab_node::checking_verify_symtab_nodes() /home/uros/gcc-svn/trunk/gcc/cgraph.h:602 0x88af60 symbol_table::remove_unreachable_nodes(_IO_FILE*) /home/uros/gcc-svn/trunk/gcc/ipa.c:673 0x97a0d4 execute_todo /home/uros/gcc-svn/trunk/gcc/passes.c:2024 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. lto-wrapper: fatal error: /ssd/uros/gcc-build/gcc/xgcc returned 1 exit status compilation terminated. collect2: fatal error: lto-wrapper returned 1 exit status compilation terminated. compiler exited with status 1 output is: lto1: error: Instrumentation clone does not reference original node test1/0 (test1) @0x7fc0ac967730 Type: function definition analyzed Visibility: externally_visible public References: test1.chkp/7 (chkp) Referring: Read from file: c_lto_chkp-wrap-asm-name_0.o Availability: available First run: 0 Function flags: Thunk fixed offset 0 virtual value 0 has virtual offset 0) Called by: Calls: test1.chkp/7 (1.00 per call) Has instrumented version. lto1: internal compiler error: verify_cgraph_node failed 0x66e64b cgraph_node::verify_node() /home/uros/gcc-svn/trunk/gcc/cgraph.c:3229 0x663f94 symtab_node::verify() /home/uros/gcc-svn/trunk/gcc/symtab.c:1177 0x66406f symtab_node::verify_symtab_nodes() /home/uros/gcc-svn/trunk/gcc/symtab.c:1197 0x88af60 symtab_node::checking_verify_symtab_nodes() /home/uros/gcc-svn/trunk/gcc/cgraph.h:602 0x88af60 symbol_table::remove_unreachable_nodes(_IO_FILE*) /home/uros/gcc-svn/trunk/gcc/ipa.c:673 0x97a0d4 execute_todo /home/uros/gcc-svn/trunk/gcc/passes.c:2024 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. lto-wrapper: fatal error: /ssd/uros/gcc-build/gcc/xgcc returned 1 exit status compilation terminated. collect2: fatal error: lto-wrapper returned 1 exit status compilation terminated. FAIL: gcc.dg/lto/chkp-wrap-asm-name c_lto_chkp-wrap-asm-name_0.o-c_lto_chkp-wrap-asm-name_0.o link, -O2 -flto -fcheck-pointer-bounds -mmpx (internal compiler error) UNRESOLVED: gcc.dg/lto/chkp-wrap-asm-name c_lto_chkp-wrap-asm-name_0.o-c_lto_chkp-wrap-asm-name_0.o execute -O2 -flto -fcheck-pointer-bounds -mmpx