This is the mail archive of the gcc-patches@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]

re: Fix argument pushes to unaligned stack slots


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


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