From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A329C388A029; Wed, 7 Apr 2021 09:29:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A329C388A029 From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0ZXN0c3VpdGUvOTk5NTVdIE5ldzogZ2NjLmMtdG9ydHVy?= =?UTF-8?B?ZS9leGVjdXRlL3ByOTI2MTguY8KgdmlvbGF0ZXMgc3RyaWN0IGFsaWFzaW5n?= =?UTF-8?B?IHJ1bGVz?= Date: Wed, 07 Apr 2021 09:29:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Wed, 07 Apr 2021 09:29:09 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99955 Bug ID: 99955 Summary: gcc.c-torture/execute/pr92618.c=C2=A0violates strict aliasing rules Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: acoplan at gcc dot gnu.org Target Milestone: --- The above execution test trips the strict aliasing warnings: aarch64-linux-gnu-gcc -O2 -Wall gcc/testsuite/gcc.c-torture/execute/pr92618= .c -static gcc/testsuite/gcc.c-torture/execute/pr92618.c: In function =E2=80=98baz=E2= =80=99: gcc/testsuite/gcc.c-torture/execute/pr92618.c:44:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 44 | *(__m128i *) &a[0] =3D c; | ^~~~~~~~~~~~~~~~~ gcc/testsuite/gcc.c-torture/execute/pr92618.c:45:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 45 | *(__m128i *) &a[2] =3D d; | ^~~~~~~~~~~~~~~~~ but it doesn't set -fno-strict-aliasing. It looks like the test should set -fno-strict-aliasing.=