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

--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jakub Jelinek
<[email protected]>:

https://gcc.gnu.org/g:21d09955d2b7755db7d5ba3cd4a314930b470da7

commit r11-10682-g21d09955d2b7755db7d5ba3cd4a314930b470da7
Author: Jakub Jelinek <[email protected]>
Date:   Wed Nov 23 19:09:31 2022 +0100

    c: Fix compile time hog in c_genericize [PR107127]

    The complex multiplications result in deeply nested set of many SAVE_EXPRs,
    which takes even on fast machines over 5 minutes to walk.
    This patch fixes that by using walk_tree_without_duplicates where it is
    instant.

    2022-11-23  Andrew Pinski  <[email protected]>
                Jakub Jelinek  <[email protected]>

            PR c/107127
            * c-gimplify.c (c_genericize): Use walk_tree_without_duplicates
            instead of walk_tree for c_genericize_control_r.

            * gcc.dg/pr107127.c: New test.

    (cherry picked from commit 8a0fce6a51915c29584427fd376b40073c328090)

Reply via email to