c/111975 - GIMPLE FE dumping and parsing of TARGET_MEM_REF
commit5bca321faa30c4fb46225efbe2698a13b3271b1c
authorRichard Biener <rguenther@suse.de>
Mon, 18 Dec 2023 10:41:03 +0000 (18 11:41 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 18 Dec 2023 11:58:06 +0000 (18 12:58 +0100)
tree79624fa984770d2b4e71699f7fd0a2604f068f8c
parent8c5d1d13882a0e58c308b95b1b51484721eafded
c/111975 - GIMPLE FE dumping and parsing of TARGET_MEM_REF

The following adds dumping of TARGET_MEM_REF in -gimple form and
adds parsing of it to the GIMPLE FE.

PR c/111975
gcc/c/
* gimple-parser.cc (c_parser_gimple_postfix_expression):
Parse TARGET_MEM_REF extended operands for __MEM.

gcc/
* tree-pretty-print.cc (dump_mem_ref): Use TDF_GIMPLE path
also for TARGET_MEM_REF and amend it.

gcc/testsuite/
* gcc.dg/gimplefe-52.c: New testcase.
gcc/c/gimple-parser.cc
gcc/testsuite/gcc.dg/gimplefe-52.c [new file with mode: 0644]
gcc/tree-pretty-print.cc