This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gimplefe] Construction of individual gimple statements for gimple_cond and gimple_label
- From: Diego Novillo <dnovillo at google dot com>
- To: Sandeep Soni <soni dot sandeepb at gmail dot com>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 2 Aug 2012 10:12:32 -0700
- Subject: Re: [gimplefe] Construction of individual gimple statements for gimple_cond and gimple_label
- References: <CANY-sXXDmZ6A9RUmvp0Er2RN1GT55jpHVk1Kb38ZzN32EsZLMg@mail.gmail.com>
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.