gimple-parser.c (c_parser_gimple_statement): Remove questionable auto-promotion to...
authorRichard Biener <rguenther@suse.de>
Wed, 15 May 2019 09:18:15 +0000 (09:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 May 2019 09:18:15 +0000 (09:18 +0000)
2019-05-14  Richard Biener  <rguenther@suse.de>

* gimple-parser.c (c_parser_gimple_statement): Remove
questionable auto-promotion to VIEW_CONVERT_EXPR.
(c_parser_gimple_typespec): Split out from __MEM parsing.
(c_parser_gimple_postfix_expression): Handle __VIEW_CONVERT.
* tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
as __VIEW_CONVERT with -gimple.

* gcc.dg/gimplefe-40.c: New testcase.

From-SVN: r271203

gcc/ChangeLog
gcc/tree-pretty-print.c

index 1b0666f489c1ee4aa18d4116ec30e2b623b5cec9..a736de96432b0f2df32d4ba646232d5dae2193e6 100644 (file)
@@ -1,3 +1,8 @@
+2019-05-14  Richard Biener  <rguenther@suse.de>
+
+       * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
+       as __VIEW_CONVERT with -gimple.
+
 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
 
        PR target/82920
index ae0a6c120723986dc3083f694f7560c436c0ecc5..0af9c5debfaaa94fcd88573beae5f95eab4cb466 100644 (file)
@@ -2653,7 +2653,10 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags,
       break;
 
     case VIEW_CONVERT_EXPR:
-      pp_string (pp, "VIEW_CONVERT_EXPR<");
+      if (flags & TDF_GIMPLE)
+       pp_string (pp, "__VIEW_CONVERT <");
+      else
+       pp_string (pp, "VIEW_CONVERT_EXPR<");
       dump_generic_node (pp, TREE_TYPE (node), spc, flags, false);
       pp_string (pp, ">(");
       dump_generic_node (pp, TREE_OPERAND (node, 0), spc, flags, false);