public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114965] [13/14/15 Regression] wrong code generated for Emacs/Gnulib strftime (regression from 13.2) Date: Mon, 06 May 2024 23:45:09 +0000 [thread overview] Message-ID: <bug-114965-4-Ld386XzuuB@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114965-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965 --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduded testcase that fails at -O1 (but passes at -O2): ``` [[gnu::noipa]] static void g(char pad1) { if (pad1 != '0' && pad1 != '+' && pad1 != '_') __builtin_unreachable(); if (pad1 == '0' || pad1 == '+') __builtin_trap(); } char buf[4000]; int main(void) { g('_'); } ``` But it definitely comes down to reassociation incorrectly thinking that (here) that pad1 could only be 43 or 48. While it could be also 93 ('_').
next prev parent reply other threads:[~2024-05-06 23:45 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-06 22:17 [Bug c/114965] New: " eggert at cs dot ucla.edu 2024-05-06 23:05 ` [Bug middle-end/114965] " pinskia at gcc dot gnu.org 2024-05-06 23:07 ` [Bug tree-optimization/114965] [14/15 Regression] " pinskia at gcc dot gnu.org 2024-05-06 23:08 ` pinskia at gcc dot gnu.org 2024-05-06 23:10 ` [Bug tree-optimization/114965] [13/14/15 " pinskia at gcc dot gnu.org 2024-05-06 23:35 ` pinskia at gcc dot gnu.org 2024-05-06 23:45 ` pinskia at gcc dot gnu.org [this message] 2024-05-07 4:45 ` sjames at gcc dot gnu.org 2024-05-07 8:51 ` rguenth at gcc dot gnu.org 2024-05-07 9:49 ` sjames at gcc dot gnu.org 2024-05-07 11:25 ` jakub at gcc dot gnu.org 2024-05-07 11:49 ` jakub at gcc dot gnu.org 2024-05-07 16:24 ` jakub at gcc dot gnu.org 2024-05-07 16:38 ` eggert at cs dot ucla.edu 2024-05-08 8:18 ` cvs-commit at gcc dot gnu.org 2024-05-08 8:19 ` cvs-commit at gcc dot gnu.org 2024-05-08 8:20 ` [Bug tree-optimization/114965] [13 " jakub at gcc dot gnu.org 2024-05-09 4:27 ` cvs-commit at gcc dot gnu.org 2024-05-09 8:19 ` 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-114965-4-Ld386XzuuB@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).