From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9CF793858407; Wed, 27 Mar 2024 09:35:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CF793858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711532153; bh=XeZBVqhb7kynj18Bw4USJh/QZqaB52h+be4ta5LYGBA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qGoxd7GT/4jIq+RzZ37uqOmxnDKrPIs0tUoZZnCPyfglFLGTJTvwGjK+7xhOu3+iL XhpXYsgPpQUia0Tevkq92rqnJf4VEkZBocy0Sey2mhL2r9A4MsQ0BnWhzuphNoVA9x fuoQL6NaC2KVGc2Uh3XTKIwa67L+37PA/qVONCjQ= From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114487] ICE when building libsdl2 on -mfpmath=sse x86 with LTO Date: Wed, 27 Mar 2024 09:35:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114487 --- Comment #4 from Uro=C5=A1 Bizjak --- (In reply to Uro=C5=A1 Bizjak from comment #3) > (In reply to Uro=C5=A1 Bizjak from comment #2) > > Adding -msse to the second compilation works OK, removing -mfpmath=3Dss= e from > > the first compilation also works OK. >=20 > 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 enab= led is called from SSE disabled function. FIXME: We need a way to detect these cases cross-ltrans partit= ion and avoid using SSE calling conventions on local functions cal= led from function with SSE disabled. For now at least delay the warning until we know we are going to produce wrong code. See PR66047 */=