public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dcb314 at hotmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109996] New: csmith: -O2 -fno-strict-aliasing causing run time trouble Date: Fri, 26 May 2023 17:47:08 +0000 [thread overview] Message-ID: <bug-109996-4@http.gcc.gnu.org/bugzilla/> (raw) 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]$
next reply other threads:[~2023-05-26 17:47 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-26 17:47 dcb314 at hotmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-109996-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).