This is the mail archive of the gcc@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: [rfc] stack alignment macro cleanup


On Tue, Oct 5, 2010 at 8:57 AM, Richard Henderson <rth@redhat.com> wrote:
> On 10/04/2010 04:24 PM, H.J. Lu wrote:
>> As I remembered, -mforce-drap exposed issues with register allocator.
>> ix86_force_drap is only referenced in one place in i386.c. I'd like to keep
>> it. ?I don't see why it can't be moved to generic. It may expose problems
>> for other targets.
>
> I doubt very much if any other target will ever implement
> stack re-alignment like x86 does. ?The patch I posted is
> good enough to handle any arbitrary user variable alignment.
> The only thing it doesn't handle is alignment for spill
> slots. ?Only x86 requires that.
>

Gcc fails to properly pass aligned variables on stack:

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

A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2010-08/msg01669.html

How does your proposal pass aligned parameters on stack for
other targets?


-- 
H.J.


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