https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69188
--- Comment #24 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Mon Jan 23 12:26:05 2017 New Revision: 244799 URL: https://gcc.gnu.org/viewcvs?rev=244799&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 <mli...@suse.cz> Backport from mainline 2017-01-20 Martin Liska <mli...@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 <mli...@suse.cz> Backport from mainline 2017-01-20 Martin Liska <mli...@suse.cz> PR lto/69188 * gcc.dg/lto/pr69188_0.c: New test. * gcc.dg/lto/pr69188_1.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/lto/pr69188_0.c branches/gcc-6-branch/gcc/testsuite/gcc.dg/lto/pr69188_1.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/tree-profile.c