public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation
@ 2015-03-13 13:32 jakub at gcc dot gnu.org
  2015-03-13 13:32 ` [Bug tree-optimization/65418] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-13 13:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65418
           Summary: [5 Regression] vim miscompilation
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: jakub at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org

__attribute__((noinline, noclone)) int
foo (int x)
{
  if (x == '(' - 256 || x == '|' - 256 || x == '&' - 256 || x == 'n' - 256)
     return 1;
  return 0;
}

int
main ()
{
  if (foo ('n' - 256) != 1
      || foo ('(' - 256) != 1
      || foo ('|' - 256) != 1
      || foo ('&' - 256) != 1
      || foo ('q' - 256) != 0)
    __builtin_abort ();
  return 0;
}

is miscompiled at -O2 starting with r216393.


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

end of thread, other threads:[~2015-03-14  9:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 13:32 [Bug tree-optimization/65418] New: [5 Regression] vim miscompilation jakub at gcc dot gnu.org
2015-03-13 13:32 ` [Bug tree-optimization/65418] " jakub at gcc dot gnu.org
2015-03-13 13:33 ` jakub at gcc dot gnu.org
2015-03-13 15:59 ` jakub at gcc dot gnu.org
2015-03-14  9:56 ` jakub at gcc dot gnu.org
2015-03-14  9:57 ` jakub 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).