From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7AE43385C019; Mon, 6 Apr 2020 06:35:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AE43385C019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586154945; bh=NfNOuzj2eyoT9dnODd97dAGRJHKO4y35iXEPycgM14k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XERko97U0wwdJf17J5tuW8OMBm8W+ldgpa8iCiW8W3GTo4a1SRckuZvTU3wu+J3Ff ZrvmTTsKxz2ZgaEF9ZExD8SRAD1tZpy+tdVj8MGxl405KP9AnDJ73a8qEJwIV8a5li iEV9U38WYVcKD84bi4kVdYyoEoeqX0VpPqJRucDQ= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94482] Inserting into vector with optimization enabled on x86 generates incorrect result Date: Mon, 06 Apr 2020 06:35:44 +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: 9.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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: cf_known_to_work cc 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2020 06:35:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94482 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |6.4.0 CC| |jakub at gcc dot gnu.org --- Comment #9 from Martin Li=C5=A1ka --- (In reply to Evan Nemerson from comment #8) > Created attachment 48204 [details] > Reduced test case, ASan/UBSan clean >=20 > Here is the reduced test case which works with -fsanitize=3Daddress,undef= ined > -Wno-psabi -Wall -Werror. >=20 > This one is self-contained, and instead of using assert the return value = is > 0 on success and 1 on failure. Thank you. The git bisection revisions remain the same for the reduced test-case. Isn't the problem right now the violation of -Wpsabi? pr94482-v2.c: In function =E2=80=98s=E2=80=99: pr94482-v2.c:8:1: warning: SSE vector return without SSE enabled changes the ABI [-Wpsabi] 8 | l s(__INT64_TYPE__ a) { | ^ pr94482-v2.c: In function =E2=80=98p=E2=80=99: pr94482-v2.c:16:3: note: the ABI for passing parameters with 16-byte alignm= ent has changed in GCC 4.6 16 | l p(l a, __INT64_TYPE__ i, int q) { | ^ pr94482-v2.c:16:3: warning: SSE vector argument without SSE enabled changes= the ABI [-Wpsabi]=