OSDN Git Service

c-family/
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2011 18:29:00 +0000 (18:29 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2011 18:29:00 +0000 (18:29 +0000)
commit54cf6eedbb99bd87423d40d39c8c5e624af78097
tree3303539709cda0985ea091e558f6238ba2e62ce1
parentaafa07940490fa7e0780976c7fc780d08a311bb6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171012 138bc75d-0d04-0410-961f-82ee72b054a4
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]