diff options
author | Jason Merrill <jason@redhat.com> | 2015-10-31 12:19:38 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-10-31 12:19:38 -0400 |
commit | dfded2f6b4c566dfc8da913a9078fdcf71751968 (patch) | |
tree | 2bd18aaf1121ac0e4749a86749d20c10be3c65eb /gcc | |
parent | b9702967ee6ce84303296b111f596fefab3a60a9 (diff) | |
download | gcc-dfded2f6b4c566dfc8da913a9078fdcf71751968.zip gcc-dfded2f6b4c566dfc8da913a9078fdcf71751968.tar.gz gcc-dfded2f6b4c566dfc8da913a9078fdcf71751968.tar.bz2 |
Make some functions static.
* parser.c (synthesize_implicit_template_parm)
(finish_fully_implicit_template): Make static.
From-SVN: r229625
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parser.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 01c8d06..52ec431 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2015-10-31 Jason Merrill <jason@redhat.com> + + * parser.c (synthesize_implicit_template_parm) + (finish_fully_implicit_template): Make static. + 2015-10-29 Andrew MacLeod <amacleod@redhat.com> * call.c: Reorder #include's and remove duplicates. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index c8f8b3d..3c6b2b1 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -19469,12 +19469,14 @@ cp_parser_type_id_1 (cp_parser* parser, bool is_template_arg, is_template_arg); } -static tree cp_parser_type_id (cp_parser *parser) +static tree +cp_parser_type_id (cp_parser *parser) { return cp_parser_type_id_1 (parser, false, false); } -static tree cp_parser_template_type_arg (cp_parser *parser) +static tree +cp_parser_template_type_arg (cp_parser *parser) { tree r; const char *saved_message = parser->type_definition_forbidden_message; @@ -36578,7 +36580,7 @@ get_concept_from_constraint (tree t) (creating a new template parameter list if necessary). Returns the newly created template type parm. */ -tree +static tree synthesize_implicit_template_parm (cp_parser *parser, tree constr) { gcc_assert (current_binding_level->kind == sk_function_parms); @@ -36771,7 +36773,7 @@ synthesize_implicit_template_parm (cp_parser *parser, tree constr) declaration can be completed. If MEMBER_DECL_OPT is provided the finished form is returned. Otherwise NULL_TREE is returned. */ -tree +static tree finish_fully_implicit_template (cp_parser *parser, tree member_decl_opt) { gcc_assert (parser->fully_implicit_function_template_p); |