[Bug lto/87525] [7/8/9 Regression] infinite loop generated for fread() if enabling -flto and -D_FORTIFY_SOURCE=2

jamborm at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 14 16:51:00 GMT 2019


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

--- Comment #23 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Thu Mar 14 16:50:50 2019
New Revision: 269687

URL: https://gcc.gnu.org/viewcvs?rev=269687&root=gcc&view=rev
Log:
Zero local estimated benefit for cloning extern inline function

2019-03-14  Martin Jambor  <mjambor@suse.cz>

        Backport from mainline
        2019-03-07  Martin Jambor  <mjambor@suse.cz>

        PR lto/87525
        * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
        for extern inline functions.

        testsuite/
        * gcc.dg/ipa/ipcp-5.c: New test.


Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/ipa/ipcp-5.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/ipa-cp.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list