public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/99955] New: gcc.c-torture/execute/pr92618.c violates strict aliasing rules
@ 2021-04-07  9:29 acoplan at gcc dot gnu.org
  2021-04-07 10:42 ` [Bug c/99955] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-04-07  9:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99955

            Bug ID: 99955
           Summary: gcc.c-torture/execute/pr92618.c violates 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 ‘baz’:
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] = 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] = d;
      |    ^~~~~~~~~~~~~~~~~

but it doesn't set -fno-strict-aliasing. It looks like the test should set
-fno-strict-aliasing.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-12-12  6:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-07  9:29 [Bug testsuite/99955] New: gcc.c-torture/execute/pr92618.c violates strict aliasing rules acoplan at gcc dot gnu.org
2021-04-07 10:42 ` [Bug c/99955] " rguenth at gcc dot gnu.org
2021-04-07 11:23 ` cvs-commit at gcc dot gnu.org
2021-04-07 11:24 ` rguenth at gcc dot gnu.org
2021-04-07 17:19 ` joseph at codesourcery dot com
2021-12-12  6:25 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).