------- Comment #5 from steven at gcc dot gnu dot org  2010-07-13 10:33 -------
r162134 at -O3:

;; Function h (h)

h (int * a)
{
<bb 2>:
  *a_1(D) = 1;
  return;

}



;; Function g (g)

g ()
{
  int t1;
  int t;
  int t.0;
  int D.1984;

<bb 2>:
  t = 0;
  h (&t);
  t1_1 = t;
  g1 (t1_1);
  t.0_2 = t;
  D.1984_3 = t1_1 == t.0_2;
  return D.1984_3;

}


r162134 at -O3 -fipa-pta:


;; Function h (h)

h (int * a)
{
<bb 2>:
  *a_1(D) = 1;
  return;

}



;; Function g (g)

g ()
{
  int t1;
  int t;

<bb 2>:
  t = 0;
  h (&t);
  t1_1 = t;
  g1 (t1_1);
  return 1;

}


Thus, fixed with -fipa-pta.

Richi, test case for you?


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0


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

Reply via email to