From: Richard Biener Date: Wed, 15 May 2019 09:18:15 +0000 (+0000) Subject: gimple-parser.c (c_parser_gimple_statement): Remove questionable auto-promotion to... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=905549856db41a1979382867060c6260b9f844f2;p=gcc.git gimple-parser.c (c_parser_gimple_statement): Remove questionable auto-promotion to VIEW_CONVERT_EXPR. 2019-05-14 Richard Biener * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1b0666f489c..a736de96432 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-05-14 Richard Biener + + * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR + as __VIEW_CONVERT with -gimple. + 2019-05-12 Iain Sandoe PR target/82920 diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ae0a6c12072..0af9c5debfa 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -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);