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: [s390] increase stack alignment


On Wed, Oct 8, 2008 at 1:55 PM, DJ Delorie <dj@redhat.com> wrote:
>
>> So could you please elaborate why you think this is necessary.
>
> The CDSG opcode needs 16 byte alignment when accessing stack
> variables, currently it doesn't get it, I'm not really picky about how
> it gets fixed ;-)
>
> In the test case I have (from a customer), the cdsg opcode is in an
> inline asm, so gcc can't know that that stack is "special".  However,
> the variables on stack are tagged for 32-byte alignment, and only get
> 8-byte alignment.  Perhaps something in gcc could note when stack
> variables need greater alignment than the stack normally provides, and
> adjust the stack at runtime accordingly?
>

The middle end does collect all alignment requirements on stack. But
the backend has to use this info to align the stack properly. Right now
only x86 backend can align the stack dynamically.


-- 
H.J.


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