diff options
author | Jason Merrill <jason@redhat.com> | 2016-06-19 15:46:20 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2016-06-21 21:50:23 +0300 |
commit | 837f716e7cddb63b7c3aefa5959c65a87ffdff50 (patch) | |
tree | 0f86e9fc1801748b111d78ace48376a2cf5cdd25 | |
parent | 9ca3f11916bf56f56a1d0ca3890caba52b1ec52a (diff) | |
download | gcc-837f716e7cddb63b7c3aefa5959c65a87ffdff50.tar.gz |
static
-rw-r--r-- | gcc/cp/constraint.cc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gcc/cp/constraint.cc b/gcc/cp/constraint.cc index 1343b6a3104..2901e4a669c 100644 --- a/gcc/cp/constraint.cc +++ b/gcc/cp/constraint.cc @@ -1643,13 +1643,11 @@ tsubst_constraint (tree t, tree args, tsubst_flags_t complain, tree in_decl) return error_mark_node; } -namespace { - /* A subroutine of tsubst_constraint_variables. Register local specializations for each of parameter in PARMS and its corresponding substituted constraint variable in VARS. Returns VARS. */ -tree +static tree declare_constraint_vars (tree parms, tree vars) { tree s = vars; @@ -1676,7 +1674,7 @@ declare_constraint_vars (tree parms, tree vars) Note that the caller must establish a local specialization stack prior to calling this function since this substitution will declare the substituted parameters. */ -tree +static tree tsubst_constraint_variables (tree t, tree args, tsubst_flags_t complain, tree in_decl) { @@ -1695,7 +1693,7 @@ tsubst_constraint_variables (tree t, tree args, substitution may result in an ill-formed expression without causing the program to be ill-formed. In such cases, the requirement wraps an error_mark_node. */ -inline tree +static inline tree tsubst_simple_requirement (tree t, tree args, tsubst_flags_t complain, tree in_decl) { @@ -1710,7 +1708,7 @@ tsubst_simple_requirement (tree t, tree args, causing the program to be ill-formed. In such cases, the requirement wraps an error_mark_node. */ -inline tree +static inline tree tsubst_type_requirement (tree t, tree args, tsubst_flags_t complain, tree in_decl) { @@ -1726,7 +1724,7 @@ tsubst_type_requirement (tree t, tree args, preserves a requirement for the purpose of partial ordering, but it will never be satisfied. */ -tree +static tree tsubst_compound_requirement (tree t, tree args, tsubst_flags_t complain, tree in_decl) { @@ -1740,7 +1738,7 @@ tsubst_compound_requirement (tree t, tree args, /* Substitute ARGS into the nested requirement T. */ -tree +static tree tsubst_nested_requirement (tree t, tree args, tsubst_flags_t complain, tree in_decl) { @@ -1750,7 +1748,7 @@ tsubst_nested_requirement (tree t, tree args, return finish_nested_requirement (expr); } -inline tree +static inline tree tsubst_requirement (tree t, tree args, tsubst_flags_t complain, tree in_decl) { switch (TREE_CODE (t)) @@ -1772,7 +1770,7 @@ tsubst_requirement (tree t, tree args, tsubst_flags_t complain, tree in_decl) /* Substitute ARGS into the list of requirements T. Note that substitution failures here result in ill-formed programs. */ -tree +static tree tsubst_requirement_body (tree t, tree args, tsubst_flags_t complain, tree in_decl) { @@ -1789,8 +1787,6 @@ tsubst_requirement_body (tree t, tree args, return nreverse (r); } -} /* namespace */ - /* Substitute ARGS into the requires expression T. Note that this results in the re-declaration of local parameters when substituting through the parameter list. If either substitution |