Patchwork [doc] Document JMP_BUF_SIZE

login
register
mail settings
Submitter Steven Bosscher
Date June 24, 2012, 9:56 p.m.
Message ID <CABu31nOs-iVCiji9Lr48WnWpSZ+cAdnU3GrsR2c17rHrZBYPbw@mail.gmail.com>
Download mbox | patch
Permalink /patch/166913/
State New
Headers show

Comments

Steven Bosscher - June 24, 2012, 9:56 p.m.
Hello,

Documentation for this target macro is missing.
This patch adds it.  OK for trunk?

Ciao!
Steven

        * doc/tm.texi.in: Document JMP_BUF_SIZE.
        * doc/tm.texi: Regenerate.
Richard Guenther - June 25, 2012, 8:19 a.m.
On Sun, Jun 24, 2012 at 11:56 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> Hello,
>
> Documentation for this target macro is missing.
> This patch adds it.  OK for trunk?

Ok.

Thanks,
Richard.

> Ciao!
> Steven
>
>        * doc/tm.texi.in: Document JMP_BUF_SIZE.
>        * doc/tm.texi: Regenerate.
>
>
>
> Index: doc/tm.texi.in
> ===================================================================
> --- doc/tm.texi.in      (revision 188917)
> +++ doc/tm.texi.in      (working copy)
> @@ -8856,6 +8856,14 @@ should use the @code{setjmp}/@code{longjmp} functi
>  instead of the @code{__builtin_setjmp}/@code{__builtin_longjmp} machinery.
>  @end defmac
>
> +@defmac JMP_BUF_SIZE
> +This macro has no effect unless @code{DONT_USE_BUILTIN_SETJMP} is also
> +defined.  Define this macro if the default size of @code{jmp_buf} buffer
> +for the @code{setjmp}/@code{longjmp}-based exception handling mechanism
> +is not large enough, or if it is much too large.
> +The default size is @code{FIRST_PSEUDO_REGISTER * sizeof(void *)}.
> +@end defmac
> +
>  @defmac DWARF_CIE_DATA_ALIGNMENT
>  This macro need only be defined if the target might save registers in the
>  function prologue at an offset to the stack pointer that is not aligned to
> Index: doc/tm.texi
> ===================================================================
> --- doc/tm.texi (revision 188917)
> +++ doc/tm.texi (working copy)
> @@ -8961,6 +8961,14 @@ should use the @code{setjmp}/@code{longjmp} functi
>  instead of the @code{__builtin_setjmp}/@code{__builtin_longjmp} machinery.
>  @end defmac
>
> +@defmac JMP_BUF_SIZE
> +This macro has no effect unless @code{DONT_USE_BUILTIN_SETJMP} is also
> +defined.  Define this macro if the default size of @code{jmp_buf} buffer
> +for the @code{setjmp}/@code{longjmp}-based exception handling mechanism
> +is not large enough, or if it is much too large.
> +The default size is @code{FIRST_PSEUDO_REGISTER * sizeof(void *)}.
> +@end defmac
> +
>  @defmac DWARF_CIE_DATA_ALIGNMENT
>  This macro need only be defined if the target might save registers in the
>  function prologue at an offset to the stack pointer that is not aligned to

Patch

Index: doc/tm.texi.in
===================================================================
--- doc/tm.texi.in      (revision 188917)
+++ doc/tm.texi.in      (working copy)
@@ -8856,6 +8856,14 @@  should use the @code{setjmp}/@code{longjmp} functi
 instead of the @code{__builtin_setjmp}/@code{__builtin_longjmp} machinery.
 @end defmac

+@defmac JMP_BUF_SIZE
+This macro has no effect unless @code{DONT_USE_BUILTIN_SETJMP} is also
+defined.  Define this macro if the default size of @code{jmp_buf} buffer
+for the @code{setjmp}/@code{longjmp}-based exception handling mechanism
+is not large enough, or if it is much too large.
+The default size is @code{FIRST_PSEUDO_REGISTER * sizeof(void *)}.
+@end defmac
+
 @defmac DWARF_CIE_DATA_ALIGNMENT
 This macro need only be defined if the target might save registers in the
 function prologue at an offset to the stack pointer that is not aligned to
Index: doc/tm.texi
===================================================================
--- doc/tm.texi (revision 188917)
+++ doc/tm.texi (working copy)
@@ -8961,6 +8961,14 @@  should use the @code{setjmp}/@code{longjmp} functi
 instead of the @code{__builtin_setjmp}/@code{__builtin_longjmp} machinery.
 @end defmac

+@defmac JMP_BUF_SIZE
+This macro has no effect unless @code{DONT_USE_BUILTIN_SETJMP} is also
+defined.  Define this macro if the default size of @code{jmp_buf} buffer
+for the @code{setjmp}/@code{longjmp}-based exception handling mechanism
+is not large enough, or if it is much too large.
+The default size is @code{FIRST_PSEUDO_REGISTER * sizeof(void *)}.
+@end defmac
+
 @defmac DWARF_CIE_DATA_ALIGNMENT
 This macro need only be defined if the target might save registers in the
 function prologue at an offset to the stack pointer that is not aligned to