]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c.opt
c-common.c (max_constexpr_depth): New.
authorJason Merrill <jason@redhat.com>
Tue, 15 Mar 2011 18:29:00 +0000 (14:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 15 Mar 2011 18:29:00 +0000 (14:29 -0400)
commit17bc631c6806974d84c81360c6f8b3196b70d4e3
tree3303539709cda0985ea091e558f6238ba2e62ce1
parent92d0652c1eda06a6ec396470550aede34cb72079
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
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c-family/c-opts.c
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-recursion.C [new file with mode: 0644]