diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2011-04-14 12:12:55 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2011-04-14 12:12:55 +0000 |
commit | 32dabdaff895ad60c48e5ebc2e8becedc0fd17d4 (patch) | |
tree | 1e8730dabd24d0ca6758eaeae0275a3d21c2eb2d /gcc/c-parser.c | |
parent | daade2060caf31a11154d926d4927717564a7a46 (diff) | |
download | gcc-32dabdaff895ad60c48e5ebc2e8becedc0fd17d4.tar.gz |
In gcc/: 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
* c-parser.c (c_parser_objc_class_declaration): Updated call to
objc_declare_class.
In gcc/c-family/:
2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
* stub-objc.c (objc_declare_class): Updated argument name.
In gcc/cp/:
2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
* parser.c (cp_parser_objc_class_declaration): Updated for change
in objc_declare_class().
In gcc/objc/:
2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-act.c (objc_declare_class): Changed to take a single
identifier as argument instead of a tree list. This means callers
don't have to build temporary tree lists to call this function.
(synth_module_prologue): Updated calls to objc_declare_class.
From-SVN: r172425
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 0aefa421a1c..8000b755af5 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -6994,7 +6994,6 @@ c_parser_objc_class_instance_variables (c_parser *parser) static void c_parser_objc_class_declaration (c_parser *parser) { - tree list = NULL_TREE; gcc_assert (c_parser_next_token_is_keyword (parser, RID_AT_CLASS)); c_parser_consume_token (parser); /* Any identifiers, including those declared as type names, are OK @@ -7010,7 +7009,7 @@ c_parser_objc_class_declaration (c_parser *parser) return; } id = c_parser_peek_token (parser)->value; - list = chainon (list, build_tree_list (NULL_TREE, id)); + objc_declare_class (id); c_parser_consume_token (parser); if (c_parser_next_token_is (parser, CPP_COMMA)) c_parser_consume_token (parser); @@ -7018,7 +7017,6 @@ c_parser_objc_class_declaration (c_parser *parser) break; } c_parser_skip_until_found (parser, CPP_SEMICOLON, "expected %<;%>"); - objc_declare_class (list); } /* Parse an objc-alias-declaration. |