On 8/8/2026 4:19 PM, Andrea Pinski wrote:
While fixing PR 126729 and PR 126570, I found it was hard
to figure out if REF_REVERSE_STORAGE_ORDER was set on a MEM_REF.
Even for the gimple fe was able to set it.
This adds support to the gimple fe and also outputs
REF_REVERSE_STORAGE_ORDER for MEM_REF in gimple mode.
Bootstrapped and tested on x84_64-linux-gnu.
gcc/c/ChangeLog:
* gimple-parser.cc (c_parser_gimple_postfix_expression):
Allow for an optional `, 1/0` in front of the cb pair
for MEM_REF.
gcc/ChangeLog:
* tree-pretty-print.cc (dump_mem_ref): Dump REF_REVERSE_STORAGE_ORDER
if it was set.
gcc/testsuite/ChangeLog:
* gcc.dg/gimplefe-59.c: New test.
OK
jeff