https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77962
Bug ID: 77962 Summary: [7 Regression] Bootstrap failure on x86_64-linux starting with r241063 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org Target Milestone: --- I'm getting bootstrap (and non-bootstrap) x86_64-linux and i686-linux failures while building 32-bit libgo. The problem seems to be 2 ICEs during configure, and -fPIC, -o and -fsplit-stack options aren't detected as supported because of that. The lack of -o one breaks the build. Short testcase in x86_64-linux ../configure --disable-bootstrap --enable-languages=c,c++,go --enable-checking=yes,rtl,extra configured compiler: echo 'package main; func main() { }' > conftest.go ./go1 -quiet conftest.go -m32 -O2 -fPIC conftest.go: In function ‘main.main’: conftest.go:1:15: internal compiler error: in ix86_expand_epilogue, at config/i386/i386.c:14213 package main; func main() { } ^ 0xfc4f26 ix86_expand_epilogue(int) ../../gcc/config/i386/i386.c:14212 0x11da49f gen_epilogue() ../../gcc/config/i386/i386.md:12654 0xf97da8 target_gen_epilogue ../../gcc/config/i386/i386.md:12165 0x9617dd make_epilogue_seq ../../gcc/function.c:5842 0x9617dd thread_prologue_and_epilogue_insns() ../../gcc/function.c:5940 0x962032 rest_of_handle_thread_prologue_and_epilogue ../../gcc/function.c:6386 0x962032 execute ../../gcc/function.c:6428 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. 14212 gcc_assert (!m->fs.sp_valid 14213 || m->fs.sp_offset == frame.stack_pointer_offset); (gdb) p m->fs.sp_valid $5 = 1 (gdb) p m->fs.sp_offset $6 = 12 (gdb) p frame.stack_pointer_offset $7 = 4