This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17217] not removing removal of nested structs
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2004 19:42:36 -0000
- Subject: [Bug tree-optimization/17217] not removing removal of nested structs
- References: <20040827185555.17217.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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