public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22630] New: vrp produces wrong code
@ 2005-07-23 16:35 belyshev at depni dot sinp dot msu dot ru
  2005-07-23 16:36 ` [Bug tree-optimization/22630] " belyshev at depni dot sinp dot msu dot ru
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-07-23 16:35 UTC (permalink / raw)
  To: gcc-bugs

// C testcase, compile with -O2
// reduced from mozilla crashes in javascript library

void abort (void);

int j;

void bla (int *r)
{
  int *p, *q;

  p = q = r;
  if (!p)
    p = &j;
  
  if (p != q)
    j = 1;
}

int main (void)
{
  bla (0);
  if (!j)
    abort ();
  return 0;
}

-- 
           Summary: vrp produces wrong code
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: critical
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: belyshev at depni dot sinp dot msu dot ru
                CC: dnovillo at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22630


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

end of thread, other threads:[~2005-07-27 16:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-23 16:35 [Bug tree-optimization/22630] New: vrp produces wrong code belyshev at depni dot sinp dot msu dot ru
2005-07-23 16:36 ` [Bug tree-optimization/22630] " belyshev at depni dot sinp dot msu dot ru
2005-07-23 16:38 ` [Bug tree-optimization/22630] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-07-23 17:07 ` pinskia at gcc dot gnu dot org
2005-07-25  0:43 ` phython at gcc dot gnu dot org
2005-07-26 20:06 ` law at redhat dot com
2005-07-27 16:22 ` law at redhat dot com
2005-07-27 16:36 ` ja2morri at csclub dot uwaterloo dot ca
2005-07-27 17:06 ` law at redhat dot com

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).