[Bug target/114487] ICE when building libsdl2 on -mfpmath=sse x86 with LTO
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 27 09:35:52 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114487
--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Uroš Bizjak from comment #3)
> (In reply to Uroš Bizjak from comment #2)
> > Adding -msse to the second compilation works OK, removing -mfpmath=sse from
> > the first compilation also works OK.
>
> Which makes this PR a LTO reincarnation of PR66047.
Please see the FIXME in ix86_function_sseregparm:
/* Refuse to produce wrong code when local function with SSE enabled
is called from SSE disabled function.
FIXME: We need a way to detect these cases cross-ltrans partition
and avoid using SSE calling conventions on local functions called
from function with SSE disabled. For now at least delay the
warning until we know we are going to produce wrong code.
See PR66047 */
More information about the Gcc-bugs
mailing list