https://gcc.gnu.org/bugzilla/show_bug.cgi?id=23872

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pins...@gcc.gnu.org>:

https://gcc.gnu.org/g:04f24e44fb14a22516444f70503719f3fda15d6c

commit r15-139-g04f24e44fb14a22516444f70503719f3fda15d6c
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Tue Apr 16 17:43:36 2024 -0700

    Fix printing COMPOUND_EXPR in .original [PR23872]

    Starting with the merge of the openmp branch into the trunk
    (r0-73077-g953ff28998b59b), COMPOUND_EXPR started to be printed
    as `expr; , expr` which is wrong. This was due to the wrong
    conversion of dumping_stmts into `!(flags & TDF_SLIM)`. That is wrong
    as we are not dumping stmts at this point (`!(flags & TDF_SLIM)` was always
    true for this case as TDF_SLIM case was handled before hand). So switch it
    to be always false.

    Bootstrapped and tested on x86_64-linux-gnu with no regressions.

    gcc/ChangeLog:

            PR middle-end/23872
            * tree-pretty-print.cc (dump_generic_node <case COMPOUND_EXPR>):
Fix
            calls to dump_generic_node and also remove unreachable code that is
testing
            `flags & TDF_SLIM`.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/gomp/atomic-21.f90: Update testcase for the removal
of `;`.

    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Reply via email to