This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26421] tree-ssa-alias.c:find_used_portions considers foo(&var) use all elements of var
- 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: 22 Feb 2006 16:02:42 -0000
- Subject: [Bug tree-optimization/26421] tree-ssa-alias.c:find_used_portions considers foo(&var) use all elements of var
- References: <bug-26421-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-22 16:02 -------
Really for this example:
For this case V_MAY_DEF's are dead anyways at least for the other SFT's besides
the one for a.i.
Try thinking what about:
typedef struct {
int i;
int j;
int k;
} Foo;
void bar(Foo*);
void bar1(Foo);
void foo(void)
{
Foo a;
a.i = 1;
bar(&a);
bar1(a);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26421