This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 16/16] Add "__RTL" to cc1


On Wed, 5 Oct 2016, David Malcolm wrote:

> @@ -1752,6 +1759,35 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok,
>        c_parser_skip_to_end_of_block_or_statement (parser);
>        return;
>      }
> +
> +  if (c_parser_next_token_is (parser, CPP_KEYWORD))
> +    {
> +      c_token *kw_token = c_parser_peek_token (parser);
> +      if (kw_token->keyword == RID_RTL)

if (c_parser_next_token_is_keyword (parser, RID_RTL))

You're missing an update to the comment above this function to show what 
the new syntax is.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]