re PR c/79478 (possible gimple error with gcc.dg/gimplefe-16.c)
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Mon, 13 Feb 2017 21:40:51 +0000 (21:40 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Mon, 13 Feb 2017 21:40:51 +0000 (21:40 +0000)
2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

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
gcc/c/gimple-parser.c

index fdf5046..71012ca 100644 (file)
@@ -1,3 +1,9 @@
+2017-02-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
+
+       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  <prasad.ghangal@gmail.com>
        Richard Biener  <rguenther@suse.de>
 
index afa2e52..711cb3d 100644 (file)
@@ -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