diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2011-04-12 16:45:40 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2011-04-12 16:45:40 +0000 |
commit | 0d8a2528265c57e2fd0c90f33c38f603db43695a (patch) | |
tree | 353154a340a6269c5f793969b1e6158c9f58ba42 /gcc/c-parser.c | |
parent | 06bd234a03462ea2ecd879392a2042584297fb0b (diff) | |
download | gcc-0d8a2528265c57e2fd0c90f33c38f603db43695a.zip gcc-0d8a2528265c57e2fd0c90f33c38f603db43695a.tar.gz gcc-0d8a2528265c57e2fd0c90f33c38f603db43695a.tar.bz2 |
In gcc/: 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
* c-parser.c (c_lex_one_token): Rewritten conditional used when
compiling Objective-C to be more efficient.
In gcc/objc/:
2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
* objc-act.c (objc_is_class_name, objc_is_id): For efficiency,
avoid calling identifier_global_value() multiple times.
From-SVN: r172327
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 33e7362..7542a58 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -334,8 +334,7 @@ c_lex_one_token (c_parser *parser, c_token *token) variables and typedefs, and hence are shadowed by local declarations. */ if (objc_interface_decl - && (global_bindings_p () - || (!objc_force_identifier && !decl))) + && (!objc_force_identifier || global_bindings_p ())) { token->value = objc_interface_decl; token->id_kind = C_ID_CLASSNAME; |