* timevar.def: Add TV_CONSTEXPR.
* constexpr.c (cxx_eval_outermost_constant_expr): Use TV_CONSTEXPR.
From-SVN: r247563
+2017-05-03 Jason Merrill <jason@redhat.com>
+
+ * timevar.def: Add TV_CONSTEXPR.
+
2017-05-03 David Malcolm <dmalcolm@redhat.com>
* common.opt (fdiagnostics-parseable-fixits): Fix typo.
+2017-05-03 Jason Merrill <jason@redhat.com>
+
+ * constexpr.c (cxx_eval_outermost_constant_expr): Use TV_CONSTEXPR.
+
2017-05-03 Nathan Sidwell <nathan@acm.org>
* cp-tree.h (enum cp_tree_index, cp_global_trees): Move earlier,
#include "tree-inline.h"
#include "ubsan.h"
#include "gimple-fold.h"
+#include "timevar.h"
static bool verify_constant (tree, bool, bool *, bool *);
#define VERIFY_CONSTANT(X) \
cxx_eval_outermost_constant_expr (tree t, bool allow_non_constant,
bool strict = true, tree object = NULL_TREE)
{
+ auto_timevar time (TV_CONSTEXPR);
+
bool non_constant_p = false;
bool overflow_p = false;
hash_map<tree,tree> map;
DEFTIMEVAR (TV_PARSE_INLINE , "parser inl. func. body")
DEFTIMEVAR (TV_PARSE_INMETH , "parser inl. meth. body")
DEFTIMEVAR (TV_TEMPLATE_INST , "template instantiation")
+DEFTIMEVAR (TV_CONSTEXPR , "constant expression evaluation")
DEFTIMEVAR (TV_CONSTRAINT_SAT , "constraint satisfaction")
DEFTIMEVAR (TV_CONSTRAINT_SUB , "constraint subsumption")
DEFTIMEVAR (TV_FLATTEN_INLINING , "flatten inlining")