aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/invoke.texi
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-03-15 14:29:00 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-03-15 14:29:00 -0400
commit17bc631c6806974d84c81360c6f8b3196b70d4e3 (patch)
tree3303539709cda0985ea091e558f6238ba2e62ce1 /gcc/doc/invoke.texi
parent92d0652c1eda06a6ec396470550aede34cb72079 (diff)
downloadgcc-17bc631c6806974d84c81360c6f8b3196b70d4e3.zip
gcc-17bc631c6806974d84c81360c6f8b3196b70d4e3.tar.gz
gcc-17bc631c6806974d84c81360c6f8b3196b70d4e3.tar.bz2
c-common.c (max_constexpr_depth): New.
c-family/ * c-common.c (max_constexpr_depth): New. * c-common.h: Declare it. * c-opts.c (c_common_handle_option): Set it. * c.opt (fconstexpr-depth): New option. cp/ * semantics.c (push_cx_call_context): Return bool. (cxx_eval_call_expression): Handle excess depth. From-SVN: r171012
Diffstat (limited to 'gcc/doc/invoke.texi')
-rw-r--r--gcc/doc/invoke.texi9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index aff5a05..b498eaccc 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -181,7 +181,7 @@ in the following sections.
@item C++ Language Options
@xref{C++ Dialect Options,,Options Controlling C++ Dialect}.
@gccoptlist{-fabi-version=@var{n} -fno-access-control -fcheck-new @gol
--fconserve-space -ffriend-injection @gol
+-fconserve-space -fconstexpr-depth=@var{n} -ffriend-injection @gol
-fno-elide-constructors @gol
-fno-enforce-eh-specs @gol
-ffor-scope -fno-for-scope -fno-gnu-keywords @gol
@@ -1881,6 +1881,13 @@ two definitions were merged.
This option is no longer useful on most targets, now that support has
been added for putting variables into BSS without making them common.
+@item -fconstexpr-depth=@var{n}
+@opindex fconstexpr-depth
+Set the maximum nested evaluation depth for C++0x constexpr functions
+to @var{n}. A limit is needed to detect endless recursion during
+constant expression evaluation. The minimum specified by the standard
+is 512; G++ defaults to 1024.
+
@item -fno-deduce-init-list
@opindex fno-deduce-init-list
Disable deduction of a template type parameter as