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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Wrong output when compiling |[9/10/11 Regression] Wrong
                   |the testcase with -O2 -flto |output when compiling the
                   |                            |testcase with -O2 -flto
                   |                            |since
                   |                            |r9-4558-g476a31b55b5471262
           Keywords|needs-bisection             |
   Target Milestone|---                         |9.4
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-4558-g476a31b55b5471262.

Slightly modified test-case:

$ cat pr97812.c
char c;

int main() {
volatile short b = 4066;
  unsigned d = b & 2305;
  signed char e = d;
  c = e ? : e;
  if (!d)
    __builtin_abort ();
  return 0;
}

@Richi: You can reproduce that on needle machine (su mliska):
$ cd /tmp/
$ gcc pr97812.c -O2 -flto -fdump-tree-all -o a.out && ./a.out
Aborted (core dumped)

Reply via email to