PATCH COMMITTED: Fix PR 46084: Allow for alignment with split stack
Ian Lance Taylor
iant@google.com
Sat Nov 6 00:08:00 GMT 2010
Richard Henderson <rth@redhat.com> writes:
> On 11/05/2010 04:48 PM, Ian Lance Taylor wrote:
>> + /* The __morestack_allocate_stack_space function will allocate
>> + memory using malloc. We don't know that the alignment of the
>> + memory returned by malloc will meet REQUIRED_ALIGN. Increase
>> + SIZE to make sure we allocate enough space. */
>> + ask = expand_binop (Pmode, add_optab, size,
>> + GEN_INT (required_align / BITS_PER_UNIT - 1),
>> + NULL_RTX, 1, OPTAB_LIB_WIDEN);
>
> We do have MALLOC_ABI_ALIGNMENT.
Oh yeah, thanks.
Testing this patch.
Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1132 bytes
Desc: MALLOC_ABI
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20101106/ad818293/attachment.bin>
More information about the Gcc-patches
mailing list