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 target/30271] -mstrict-align can cause bad code generation for struct agrument passing



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-07-24 02:14 -------
This is improved by
http://gcc.gnu.org/ml/gcc-patches/2007-07/msg00573.html

But for:
struct a
{
  int t, t1;
};

int f(struct a b)
{
  return b.t + b.t1;
}

We still get a store/load.


-- 


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


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