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
          Reporter: jakub at gcc dot
  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

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
 package main; func main() { }
0xfc4f26 ix86_expand_epilogue(int)
0x11da49f gen_epilogue()
0xf97da8 target_gen_epilogue
0x9617dd make_epilogue_seq
0x9617dd thread_prologue_and_epilogue_insns()
0x962032 rest_of_handle_thread_prologue_and_epilogue
0x962032 execute
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <> 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

Reply via email to