[Bug ipa/89009] [7 Regression] Miscompilation (missing function call) with -fvisibility=hidden -fpic -O2 -fno-inline

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 15 10:59:00 GMT 2019


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

--- Comment #17 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Feb 15 10:58:49 2019
New Revision: 268937

URL: https://gcc.gnu.org/viewcvs?rev=268937&root=gcc&view=rev
Log:
Backport r268762

2019-02-15  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2019-02-11  Martin Liska  <mliska@suse.cz>

        PR ipa/89009
        * ipa-cp.c (build_toporder_info): Remove usage of a param.
        * ipa-inline.c (inline_small_functions): Likewise.
        * ipa-pure-const.c (propagate_pure_const): Likewise.
        (propagate_nothrow): Likewise.
        * ipa-reference.c (propagate): Likewise.
        * ipa-utils.c (struct searchc_env): Remove unused field.
        (searchc): Always search across AVAIL_INTERPOSABLE.
        (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
        the only called IPA pure const can properly not propagate
        across interposable boundary.
        * ipa-utils.h (ipa_reduced_postorder): Remove param.
2019-02-15  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2019-02-11  Martin Liska  <mliska@suse.cz>

        PR ipa/89009
        * g++.dg/ipa/pr89009.C: New test.

Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/ipa-cp.c
    branches/gcc-7-branch/gcc/ipa-inline.c
    branches/gcc-7-branch/gcc/ipa-pure-const.c
    branches/gcc-7-branch/gcc/ipa-reference.c
    branches/gcc-7-branch/gcc/ipa-utils.c
    branches/gcc-7-branch/gcc/ipa-utils.h
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list