From dbc518f09c4ac4499dcbf5802e20cd4adb0d9a41 Mon Sep 17 00:00:00 2001 From: Volker Reichelt Date: Sat, 29 Mar 2008 00:39:48 +0000 Subject: [PATCH] * c-parser.c (c_parser_next_token_is_keyword): Simplify. From-SVN: r133709 --- gcc/ChangeLog | 4 ++++ gcc/c-parser.c | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) 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, -- 2.30.2