public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109996] New: csmith: -O2 -fno-strict-aliasing causing run time trouble
@ 2023-05-26 17:47 dcb314 at hotmail dot com
  2023-05-26 22:04 ` [Bug middle-end/109996] " pinskia at gcc dot gnu.org
  2024-03-19 10:14 ` sjames at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: dcb314 at hotmail dot com @ 2023-05-26 17:47 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109996
           Summary: csmith: -O2 -fno-strict-aliasing causing run time
                    trouble
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 55173
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55173&action=edit
C source code

The attached C code does this:

[dcb38@fedora foundBugs]$ ../results/bin/gcc -w -O1 bug924.c
runData/keep/in.45.c: In function ‘func_5’:
runData/keep/in.45.c:434:18: note: the ABI for passing parameters with 32-byte
alignment has changed in GCC 4.6
[dcb38@fedora foundBugs]$ ./a.out
checksum = 7AACDAF2

[dcb38@fedora foundBugs]$ ../results/bin/gcc -w -O2 bug924.c
runData/keep/in.45.c: In function ‘func_5’:
runData/keep/in.45.c:434:18: note: the ABI for passing parameters with 32-byte
alignment has changed in GCC 4.6
[dcb38@fedora foundBugs]$ ./a.out
Segmentation fault (core dumped)

Normally, -fno-strict-aliasing helps, but not here:

[dcb38@fedora foundBugs]$ ../results/bin/gcc -w -O2 -fno-strict-aliasing
bug924.c
runData/keep/in.45.c: In function ‘func_5’:
runData/keep/in.45.c:434:18: note: the ABI for passing parameters with 32-byte
alignment has changed in GCC 4.6
[dcb38@fedora foundBugs]$ ./a.out
Segmentation fault (core dumped)

The bug seems to have existed for some time:

$ ../results.20220515/bin/gcc -w -g -O2 -fno-strict-aliasing bug924.c
runData/keep/in.45.c: In function ‘func_5’:
runData/keep/in.45.c:434:18: note: the ABI for passing parameters with 32-byte
alignment has changed in GCC 4.6
[dcb38@fedora foundBugs]$ ./a.out
Segmentation fault (core dumped)
[dcb38@fedora foundBugs]$

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

* [Bug middle-end/109996] csmith: -O2 -fno-strict-aliasing causing run time trouble
  2023-05-26 17:47 [Bug c/109996] New: csmith: -O2 -fno-strict-aliasing causing run time trouble dcb314 at hotmail dot com
@ 2023-05-26 22:04 ` pinskia at gcc dot gnu.org
  2024-03-19 10:14 ` sjames at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-05-26 22:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There could be some alignment issues here ...

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

* [Bug middle-end/109996] csmith: -O2 -fno-strict-aliasing causing run time trouble
  2023-05-26 17:47 [Bug c/109996] New: csmith: -O2 -fno-strict-aliasing causing run time trouble dcb314 at hotmail dot com
  2023-05-26 22:04 ` [Bug middle-end/109996] " pinskia at gcc dot gnu.org
@ 2024-03-19 10:14 ` sjames at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-19 10:14 UTC (permalink / raw)
  To: gcc-bugs

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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjames at gcc dot gnu.org

--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
I can't seem to reproduce this on tip of 11/12/13/14.

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

end of thread, other threads:[~2024-03-19 10:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-26 17:47 [Bug c/109996] New: csmith: -O2 -fno-strict-aliasing causing run time trouble dcb314 at hotmail dot com
2023-05-26 22:04 ` [Bug middle-end/109996] " pinskia at gcc dot gnu.org
2024-03-19 10:14 ` sjames 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).