* c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
* c-common.h: Don't declare it here.
* c-common.c: Or define it here.
* c-opts.c (c_common_handle_option): Or set it here.
From-SVN: r171166
2011-03-18 Jason Merrill <jason@redhat.com>
+ * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
+ * c-common.h: Don't declare it here.
+ * c-common.c: Or define it here.
+ * c-opts.c (c_common_handle_option): Or set it here.
+
PR c++/35315
* c-common.c (handle_transparent_union_attribute): Don't
make a duplicate type in C++.
int max_tinst_depth = 1024;
-/* Likewise, for constexpr function call evaluations. N3225 specifies a
- minimum of 512. */
-
-int max_constexpr_depth = 512;
-
/* The elements of `ridpointers' are identifier nodes for the reserved
type names and storage classes. It is indexed by a RID_... value. */
tree *ridpointers;
extern int max_tinst_depth;
-/* Likewise, for constexpr function call evaluations. */
-
-extern int max_constexpr_depth;
-
/* Nonzero means that we should not issue warnings about problems that
occur when the code is executed, because the code being processed
is not expected to be executed. This is set during parsing. This
disable_builtin_function (arg);
break;
- case OPT_fconstexpr_depth_:
- max_constexpr_depth = value;
- break;
-
case OPT_fdirectives_only:
cpp_opts->directives_only = value;
break;
-fconst-string-class=<name> Use class <name> for constant strings
fconstexpr-depth=
-C++ ObjC++ Joined RejectNegative UInteger
--constexpr-depth=<number> Specify maximum constexpr recursion depth
+C++ ObjC++ Joined RejectNegative UInteger Var(max_constexpr_depth) Init(512)
+-fconstexpr-depth=<number> Specify maximum constexpr recursion depth
fdeduce-init-list
C++ ObjC++ Var(flag_deduce_init_list) Init(1)