This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/30271] -mstrict-align can an store extra 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: 16 Dec 2008 02:08:04 -0000
- Subject: [Bug target/30271] -mstrict-align can an store extra for struct agrument passing
- References: <bug-30271-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from pinskia at gcc dot gnu dot org 2008-12-16 02:08 -------
(In reply to comment #9)
> Andrew,
>
> What is your point here?
My point here is that currently we do:
gi->frame_related =
(base == frame_pointer_rtx) || (base == hard_frame_pointer_rtx);
But if we change it to be:
gi->frame_related =
(base == frame_pointer_rtx) || (base == hard_frame_pointer_rtx)
|| (base == arg_pointer_rtx && fixed_regs[ARG_POINTER_REGNUM]);
It would delete the store (at least in a 4.3 based compiler). arg_pointer_rtx
is the incoming argument space so if it is a fixed register it will be also
frame related and we can safely delete the stores to this space.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30271