[Bug lto/69188] [5/6 Regression] ICE when linking objects at different optimization levels with LTO and profile generation enabled. (Works with 4.9.3.)

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 23 12:25:00 GMT 2017


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

--- Comment #23 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Jan 23 12:24:54 2017
New Revision: 244797

URL: https://gcc.gnu.org/viewcvs?rev=244797&root=gcc&view=rev
Log:
Do not declare artificial variables in tree-profile.c to have a definition (PR
lto/69188).

2017-01-23  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2017-01-20  Martin Liska  <mliska@suse.cz>

        PR lto/69188
        * tree-profile.c (init_ic_make_global_vars): Do not call
        finalize_decl.
        (gimple_init_gcov_profiler): Likewise.
2017-01-23  Martin Liska  <mliska@suse.cz>

        Backport from mainline
        2017-01-20  Martin Liska  <mliska@suse.cz>

        PR lto/69188
        * gcc.dg/lto/pr69188_0.c: New test.
        * gcc.dg/lto/pr69188_1.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/lto/pr69188_0.c
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/lto/pr69188_1.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/testsuite/ChangeLog
    branches/gcc-5-branch/gcc/tree-profile.c


More information about the Gcc-bugs mailing list