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/17217] not removing removal of nested structs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-27 19:42 -------
Here is the unnested version:
int h(int *a);
struct G
{
int t;
int t1;
};
int g1(struct G*);
int f1(int i, int j)
{
  struct G nestedf1={i,j};
  return g1(&nestedf1)+nestedf1.t1;
}
static int g1(struct G *nestedf1)
{
  return h(&nestedf1->t)+ nestedf1->t1;
}

-- 


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


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