From 8a398bc5455b96d76049b89aae29871b194758c7 Mon Sep 17 00:00:00 2001 From: Prathamesh Kulkarni Date: Mon, 13 Feb 2017 21:40:51 +0000 Subject: [PATCH] re PR c/79478 (possible gimple error with gcc.dg/gimplefe-16.c) 2017-02-13 Prathamesh Kulkarni PR c/79478 * gimple-parser.c (c_parser_gimple_postfix_expression): Call set_c_expr_source_range when parsing ssa-name. From-SVN: r245406 --- gcc/c/ChangeLog | 6 ++++++ gcc/c/gimple-parser.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index fdf50461181..71012caa4fe 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2017-02-13 Prathamesh Kulkarni + + PR c/79478 + * gimple-parser.c (c_parser_gimple_postfix_expression): Call + set_c_expr_source_range when parsing ssa-name. + 2017-02-10 Prasad Ghangal Richard Biener diff --git a/gcc/c/gimple-parser.c b/gcc/c/gimple-parser.c index afa2e52b7a8..711cb3daf87 100644 --- a/gcc/c/gimple-parser.c +++ b/gcc/c/gimple-parser.c @@ -844,6 +844,7 @@ c_parser_gimple_postfix_expression (c_parser *parser) c_parser_consume_token (parser); expr.value = c_parser_parse_ssa_name (parser, id, NULL_TREE, version, ver_offset); + set_c_expr_source_range (&expr, tok_range); /* For default definition SSA names. */ if (c_parser_next_token_is (parser, CPP_OPEN_PAREN) && c_parser_peek_2nd_token (parser)->type == CPP_NAME -- 2.30.2