This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23382] [4.1 Regression] Does not remove the old HEAP virtual variables in clobbered



------- Comment #6 from rguenth at gcc dot gnu dot org  2005-10-17 14:50 -------
Confirmed.  Reduced testcase:

struct a
{
  int length;
  int a1[256];
};

void *malloc(long size) __attribute__((malloc));

void f(void)
{
   struct a *a = malloc(sizeof(struct a));
}

we pile up heap variables: (t62.alias5)

<bb 0>:
  #   HEAP.5D.1297_4 = V_MAY_DEF <HEAP.5D.1297_3>;
  #   HEAP.11D.1303_5 = V_MAY_DEF <HEAP.11D.1303_2>;
  #   HEAP.17D.1309_7 = V_MAY_DEF <HEAP.17D.1309_6>;
  #   HEAP.23D.1315_9 = V_MAY_DEF <HEAP.23D.1315_8>;
  #   HEAP.29D.1321_11 = V_MAY_DEF <HEAP.29D.1321_10>;
  D.1287_1 = malloc (1028);


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-17 14:50:29
               date|                            |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]