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 fdf5046118179fd4d512778ef1f9a8fdfda18228..71012caa4fef0bb1b0ad6b4482913462eba50e6d 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 afa2e52b7a83a6808b5811f8a7b55c1c790bdea3..711cb3daf87ab91fdc6ef1816b3fc2a6e4959c5d 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