From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 12C313858C36; Wed, 27 Mar 2024 23:45:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12C313858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711583148; bh=utSiAASuXUK6b23TSEkmmYisLEya2nuZLrjCOMonOyE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jMnMeLngR70qv+Pc+K4iWO+RX2F1FShndmvcCJUnVErPMHBUsrTN0mtGjiXb5uoVV +uMec4V0i+jAgLLzyIh5+htsnjF04IfqfdgxTcNXsiojEG2GuI/pOOSjSC1RACbk5s xx+oKde0yx5qc2Y3x9muy1Ya9Vw9HxxYjxBwI6Gk= From: "pinskia at gcc dot gnu.org" 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 23:45:47 +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: pinskia at gcc dot gnu.org 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 #10 from Andrew Pinski --- (In reply to Andrew Pinski from comment #9) > (In reply to Andrew Pinski from comment #8) > > Created attachment 57823 [details] > > testcase for non-lto > >=20 > > `-W -Wall -m32 -fwhole-program -march=3Di686 -O1` is enough >=20 > Note the only difference between this and the reduced LTO case is fix up = of > SDLTest_RandomUnitFloat return type so it would be more defined and then = the > additions of the #pragma and the use of `-fwhole-program` option instead = of > LTO (since LTO does a similar thing). You can remove -fwhole-program if you make SDLTest_RandomUnitFloat static t= oo (since that is basically what -fwhole-program is doing after all) and you s= till get the failure.=