From: Volker Reichelt Date: Sat, 29 Mar 2008 00:39:48 +0000 (+0000) Subject: * c-parser.c (c_parser_next_token_is_keyword): Simplify. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbc518f09c4ac4499dcbf5802e20cd4adb0d9a41;p=gcc.git * c-parser.c (c_parser_next_token_is_keyword): Simplify. From-SVN: r133709 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7e0b005e39a..ddfa08c127c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-03-28 Volker Reichelt + + * c-parser.c (c_parser_next_token_is_keyword): Simplify. + 2008-03-28 H.J. Lu * config/i386/sse.md (*and3): Pass mode instead diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 831f95ac1e2..c0f86280164 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -443,12 +443,7 @@ c_parser_next_token_is_not (c_parser *parser, enum cpp_ttype type) static inline bool c_parser_next_token_is_keyword (c_parser *parser, enum rid keyword) { - c_token *token; - - /* Peek at the next token. */ - token = c_parser_peek_token (parser); - /* Check to see if it is the indicated keyword. */ - return token->keyword == keyword; + return c_parser_peek_token (parser)->keyword == keyword; } /* Return true if TOKEN can start a type name,