This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
re: Fix argument pushes to unaligned stack slots
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: matthew green <mrg at eterna dot com dot au>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 22 Jul 2011 12:34:02 +0000 (UTC)
- Subject: re: Fix argument pushes to unaligned stack slots
- References: <17387.1311304951@splode.eterna.com.au>
On Fri, 22 Jul 2011, matthew green wrote:
> > I don't see how it can be safe; if the stack slot is insufficiently
> > aligned, the special handling will be needed. Maybe the alignment being
> > passed to this code is wrong, but if it's correct then you need a way to
> > handle the unaligned move properly; I don't know if it would be possible
> > or safe to pass a non-NULL type here, for example.
>
> how can i confirm if it is wrong alignment being passed down?
By comparing the alignment passed with what, according to the ABI in use
(which may or may not be documented), is the actual guaranteed alignment
of the stack slot.
--
Joseph S. Myers
joseph@codesourcery.com