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

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

            Bug ID: 65053
           Summary: [5 Regression] PostgreSQL miscompilation
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org

Following testcase is miscompiled at -O2 starting with r220164:

int i;

__attribute__ ((noinline))
unsigned int foo (void)
{
  return 0;
}

int
main ()
{
  unsigned int u = -1;
  if (u == -1)
    {
      unsigned int n = foo ();
      if (n > 0)
    u = n - 1;
    }

  while (u != -1)
    {
      asm ("" : "+g" (u));
      u = -1;
      i = 1;
    }

  if (i)
    __builtin_abort ();
  return 0;
}


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

end of thread, other threads:[~2015-02-13 23:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-13 16:31 [Bug tree-optimization/65053] New: [5 Regression] PostgreSQL miscompilation jakub at gcc dot gnu.org
2015-02-13 16:32 ` [Bug tree-optimization/65053] " jakub at gcc dot gnu.org
2015-02-13 16:43 ` jakub at gcc dot gnu.org
2015-02-13 17:50 ` jakub at gcc dot gnu.org
2015-02-13 18:34 ` jakub at gcc dot gnu.org
2015-02-13 23:21 ` jakub at gcc dot gnu.org
2015-02-13 23:34 ` 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).