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/26421] tree-ssa-alias.c:find_used_portions considers foo(&var) use all elements of var



------- 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


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