[Bug tree-optimization/126729] [17 Regression] factor load does not handle scalar_storage_order correctly.

"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126729

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrea Pinski <[email protected]>:

https://gcc.gnu.org/g:fbdabd5f9a27c80a19767918adaa1ee968cf4adf

commit r17-3169-gfbdabd5f9a27c80a19767918adaa1ee968cf4adf
Author: Andrea Pinski <[email protected]>
Date:   Sat Aug 8 11:03:55 2026 -0700

    gimplefe: Add support for REF_REVERSE_STORAGE_ORDER on mem

    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.

    Signed-off-by: Andrea Pinski <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.