This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/30271] -mstrict-align can cause bad code generation for struct agrument passing
- 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: 24 Jul 2007 02:14:10 -0000
- Subject: [Bug target/30271] -mstrict-align can cause bad code generation for struct agrument passing
- References: <bug-30271-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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