RFA: Fix calculation of size of builtin setjmp buffer
Nicholas Clifton
nickc@redhat.com
Thu May 8 14:25:00 GMT 2014
Hi Mike,
> How about GET_MODE_SIZE (STACK_SAVEAREA_MODE (SAVE_NONLOCAL)) / GET_MODE_SIZE (Pmode) + 2 + /* slop for mips, see builtin_setjmp_setup */ 1 - 1. This retains the slop for mips, and fixes ports like ia64 and s390 (see STACK_SAVEAREA_MODE on those ports, it is larger one might expect)?
OK - revised patch attached. I have added a comment before the
computation to explain each of the numbers, and adjusted the comments in
the other files to match the new size of the jump buffer.
What do you think of this version ?
Cheers
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtin-setjmp.patch.2
Type: application/x-troff-man
Size: 4656 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140508/2c44514c/attachment.2>
More information about the Gcc-patches
mailing list