This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/82045] [8 regression] SPARC bootstrap broken: ICE in emit_library_call_value_1, at calls.c:4565
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 31 Aug 2017 21:09:25 +0000
- Subject: [Bug bootstrap/82045] [8 regression] SPARC bootstrap broken: ICE in emit_library_call_value_1, at calls.c:4565
- Auto-submitted: auto-generated
- References: <bug-82045-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82045
--- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #6)
[...]
> Ah! Thanks for debugging it. I guess the problem is that we're
> passing the new machine_mode classes through ... and interpreting
> them as int in emit_library_call_value_1. This will only work on
> ABIs that pass the two in the same way.
Which they don't: according to the SPARC psABI, structs are passed by
reference. And indeed interpreting mode as a scalar_float_mode * yields
the expected E_TFmode value for m_mode.
Rainer