public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "qrzhang at gatech dot edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/95172] New: wrong code at -O1 on x86_64-linux-gnu Date: Sun, 17 May 2020 05:48:01 +0000 [thread overview] Message-ID: <bug-95172-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95172 Bug ID: 95172 Summary: wrong code at -O1 on x86_64-linux-gnu Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: qrzhang at gatech dot edu Target Milestone: --- Recent regression. Bisection points to g:b6ff3ddecfa93d53867afaaa078f85f $ gcc-trunk -v gcc version 11.0.0 20200516 (experimental) [master revision 53b4d52f114:91c1d944166:f5b461d453043c6b6dda50db0439e4c78b241f03] (GCC) $ gcc-trunk -O1 abc.c ; ./a.out 1 $ gcc-trunk abc.c ; ./a.out 0 $ cat abc.c int a, d; int *b = &a; short c; int main() { for (; c <= 4; c--) { for (; d;) ; a = 1; *b = 0; } printf("%d\n", a); }
next reply other threads:[~2020-05-17 5:48 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-17 5:48 qrzhang at gatech dot edu [this message] 2020-05-18 5:56 ` [Bug tree-optimization/95172] [11 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-272-gb6ff3ddecfa93d53 marxin at gcc dot gnu.org 2020-05-18 6:26 ` rguenth at gcc dot gnu.org 2020-05-18 9:50 ` cvs-commit at gcc dot gnu.org 2020-05-18 9:50 ` rguenth 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-95172-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).