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: [gimplefe] Construction of individual gimple statements for gimple_cond and gimple_label


On Tue, Jul 10, 2012 at 10:21 PM, Sandeep Soni <soni.sandeepb@gmail.com> wrote:

> -static void
> +static tree
>  gp_parse_expect_false_label (gimple_parser *parser)
>  {
>    gl_consume_expected_token (parser->lexer, CPP_LESS);
>    gl_consume_expected_token (parser->lexer, CPP_NAME);
>    gl_consume_expected_token (parser->lexer, CPP_GREATER);
>    gl_consume_expected_token (parser->lexer, CPP_GREATER);
> +  return create_artificial_label (UNKNOWN_LOCATION);

You don't need to use UNKNOWN_LOCATION here. You can use the location
from gl_peek_token(parser->lexer)->location.

OK with that change.


Diego.


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