public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kobalicek.petr at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103699] Reading or writing a constant unaligned value is wrongly optimized causing an incorrect result (GCC-11 and up) Date: Tue, 14 Dec 2021 13:09:36 +0000 [thread overview] Message-ID: <bug-103699-4-1RX6f8pYZF@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-103699-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103699 --- Comment #15 from Petr <kobalicek.petr at gmail dot com> --- Unfortunately GCC doesn't report any issues even with `-Wstrict-aliasing=1`. BTW now I know I must use the may_alias attribute to my satisfaction, and this is what I'm gonna do, however, from user perspective I'm not really happy as GCC does something very silently. Personally, I would be happier if my code doesn't compile at all than having it compiled with bugs.
next prev parent reply other threads:[~2021-12-14 13:09 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-14 0:00 [Bug c++/103699] New: Reading or writing unaligned integers is wrongly optimized " kobalicek.petr at gmail dot com 2021-12-14 0:21 ` [Bug c++/103699] Reading or writing a constant unaligned value is wrongly optimized causing an incorrect result " pinskia at gcc dot gnu.org 2021-12-14 0:30 ` kobalicek.petr at gmail dot com 2021-12-14 0:33 ` kobalicek.petr at gmail dot com 2021-12-14 0:38 ` kobalicek.petr at gmail dot com 2021-12-14 0:42 ` pinskia at gcc dot gnu.org 2021-12-14 1:10 ` kobalicek.petr at gmail dot com 2021-12-14 1:28 ` pinskia at gcc dot gnu.org 2021-12-14 1:43 ` kobalicek.petr at gmail dot com 2021-12-14 2:05 ` pinskia at gcc dot gnu.org 2021-12-14 12:26 ` kobalicek.petr at gmail dot com 2021-12-14 12:31 ` jakub at gcc dot gnu.org 2021-12-14 12:41 ` kobalicek.petr at gmail dot com 2021-12-14 12:57 ` jakub at gcc dot gnu.org 2021-12-14 12:58 ` jakub at gcc dot gnu.org 2021-12-14 13:09 ` kobalicek.petr at gmail dot com [this message] 2021-12-14 13:24 ` pinskia at gcc dot gnu.org 2021-12-14 13:28 ` kobalicek.petr at gmail dot com 2021-12-14 13:34 ` jakub 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-103699-4-1RX6f8pYZF@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).