public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/94724] New: wrong code at -O0 on x86_64-linux-gnu
@ 2020-04-23  0:22 qrzhang at gatech dot edu
  2020-04-23  5:21 ` [Bug tree-optimization/94724] [10 Regression] wrong code at -O0 on x86_64-linux-gnu since r10-7344-gca6c722561ce9b9d marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: qrzhang at gatech dot edu @ 2020-04-23  0:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94724
           Summary: wrong code at -O0 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: ---

It happens at -O0. gcc-9 works fine.
Bisection points to g:ca6c722561ce9b9dc7b59cfd9d2


The correct output is 1.


$ gcc-trunk -v
gcc version 10.0.1 20200422 (experimental) [master revision
38644f81bab:facc719c537:56b15072aa41633235be57851ab342114e0bacba] (GCC)


$ gcc-9 abc.c ; ./a.out
1

$ gcc-trunk abc.c ; ./a.out
0

$ cat abc.c
short a, b;
int main() {
  (0, (0, (a = 0 >= 0, b))) != 53601;
  printf("%d\n", a);
}

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

end of thread, other threads:[~2020-05-08  7:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  0:22 [Bug tree-optimization/94724] New: wrong code at -O0 on x86_64-linux-gnu qrzhang at gatech dot edu
2020-04-23  5:21 ` [Bug tree-optimization/94724] [10 Regression] wrong code at -O0 on x86_64-linux-gnu since r10-7344-gca6c722561ce9b9d marxin at gcc dot gnu.org
2020-04-23  8:45 ` [Bug middle-end/94724] " jakub at gcc dot gnu.org
2020-04-23  9:30 ` jakub at gcc dot gnu.org
2020-04-23 19:12 ` cvs-commit at gcc dot gnu.org
2020-04-23 19:19 ` jakub at gcc dot gnu.org
2020-05-08  7:37 ` cvs-commit at gcc dot gnu.org
2020-05-08  7:49 ` cvs-commit 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).