aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2016-01-01 22:45:32 -0500
committerSandra Loosemore <sandra@gcc.gnu.org>2016-01-01 22:45:32 -0500
commitd59224e6cd33eac84e18a22fd3e2e6fc270d7ddd (patch)
treee64f6665b3119056c3345465322a17ca3341c6dc
parentb9596e0024fbea181359795031d54d405c3f8cea (diff)
downloadgcc-d59224e6cd33eac84e18a22fd3e2e6fc270d7ddd.zip
gcc-d59224e6cd33eac84e18a22fd3e2e6fc270d7ddd.tar.gz
gcc-d59224e6cd33eac84e18a22fd3e2e6fc270d7ddd.tar.bz2
re PR target/1078 (Problems with attributes documentation)
2016-01-01 Sandra Loosemore <sandra@codesourcery.com> PR 1078 gcc/ * extend.texi (Common Function Attributes) <no_stack_limit>: New. * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer to corresponding attribute. From-SVN: r232034
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/doc/extend.texi6
-rw-r--r--gcc/doc/invoke.texi3
3 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a19bbfe..23ce209 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,13 @@
2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
+ PR 1078
+
+ * extend.texi (Common Function Attributes) <no_stack_limit>: New.
+ * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
+ to corresponding attribute.
+
+2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
+
* doc/extend.texi (Common Function Attributes) <noplt>: Move
to correct alphabetization of table. Copy-edit and correct
markup.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 0f36d4b..dcee0a7 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2877,6 +2877,12 @@ prologue which decides whether to split the stack. Functions with the
@code{no_split_stack} attribute do not have that prologue, and thus
may run with only a small amount of stack space available.
+@item no_stack_limit
+@cindex @code{no_stack_limit} function attribute
+This attribute locally overrides the @option{-fstack-limit-register}
+and @option{-fstack-limit-symbol} command-line options; it has the effect
+of disabling stack limit checking in the function it applies to.
+
@item noclone
@cindex @code{noclone} function attribute
This function attribute prevents a function from being considered for
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 178c530..642b128 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -24631,6 +24631,9 @@ and grows downwards, you can use the flags
@option{-Wl,--defsym,__stack_limit=0x7ffe0000} to enforce a stack limit
of 128KB@. Note that this may only work with the GNU linker.
+You can locally override stack limit checking by using the
+@code{no_stack_limit} function attribute (@pxref{Function Attributes}).
+
@item -fsplit-stack
@opindex fsplit-stack
Generate code to automatically split the stack before it overflows.