[Bug tree-optimization/39074] PTA constraint processing for *x = y is wrong

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 4 12:31:00 GMT 2009



------- Comment #11 from rguenth at gcc dot gnu dot org  2009-02-04 12:31 -------
This one fails also on the branches that have PTA.

int i;
long __attribute__((noinline,const)) bar(int ***p) { return (long)p; }
extern void abort (void);
int main()
{
  int j;
  int *y = &j;
  int **a = &y, **x;
  int ***p;
  long b;
  b = bar(&a);
  p = (int ***)b;
  x = *p;
  *x = &i;
  i = 1;
  *y = 0;
  if (i != 0)
    abort ();
  return 0;
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.1.3 4.2.4 4.3.3 4.4.0
      Known to work|                            |4.0.4


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



More information about the Gcc-bugs mailing list