Commit 90554985 by Richard Biener Committed by Richard Biener

gimple-parser.c (c_parser_gimple_statement): Remove questionable auto-promotion…

gimple-parser.c (c_parser_gimple_statement): Remove questionable auto-promotion to VIEW_CONVERT_EXPR.

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
parent c101cff8
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> 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
PR target/82920 PR target/82920
......
...@@ -2653,6 +2653,9 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags, ...@@ -2653,6 +2653,9 @@ dump_generic_node (pretty_printer *pp, tree node, int spc, dump_flags_t flags,
break; break;
case VIEW_CONVERT_EXPR: case VIEW_CONVERT_EXPR:
if (flags & TDF_GIMPLE)
pp_string (pp, "__VIEW_CONVERT <");
else
pp_string (pp, "VIEW_CONVERT_EXPR<"); pp_string (pp, "VIEW_CONVERT_EXPR<");
dump_generic_node (pp, TREE_TYPE (node), spc, flags, false); dump_generic_node (pp, TREE_TYPE (node), spc, flags, false);
pp_string (pp, ">("); pp_string (pp, ">(");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment