[LLVMdev] How to force stack alignment for particular target triple in JIT?
Yuri
yuri at rawbw.com
Mon Feb 21 16:03:32 PST 2011
On 02/21/2011 05:25, Joerg Sonnenberger wrote:
> OSX uses 16 Byte. Linux silently changed the SYSV ABI to 16 Byte
> alignment as well. The most likely candidate is that all other ELF
> platforms simply inherited this change.
>
It turns out that Solaris (and FreeBSD) is supposed to be SYSV compliant
and should have word stack alignment.
gcc probably made a sweeping change once linux decided to change stack
alignment.
I filed gcc PR asking gcc to revert their behavior back to prescribed by
documentation: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47842
So my previous patch is more for gcc compatibility, rather than a
permanent correction.
Yuri
More information about the llvm-dev
mailing list