[Bug ipa/94947] [8/9 Regression] -fipa-pta + pthread_once crash since r6-5684-g47e5754e17e9ac3b

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 11 10:38:20 GMT 2020


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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:7cfb86a2a18c9d54d1fd43f17affcd184477ecb3

commit r9-8866-g7cfb86a2a18c9d54d1fd43f17affcd184477ecb3
Author: Richard Biener <rguenther@suse.de>
Date:   Thu May 7 14:06:02 2020 +0200

    ipa/94947 - avoid using externally_visible_p ()

    externally_visible_p wasn't the correct predicate to use (even if it
    worked), instead we should use DECL_EXTERNAL || TREE_PUBLIC.

    2020-05-07  Richard Biener  <rguenther@suse.de>

            PR ipa/94947
            * tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
            DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
            (refered_from_nonlocal_var): Likewise.
            (ipa_pta_execute): Likewise.

    (cherry picked from commit b9250b3cb91b667cd67943e0fac94bf39ac089a8)


More information about the Gcc-bugs mailing list