Do not declare artificial variables in tree-profile.c to have a definition (PR lto...
authorMartin Liska <mliska@suse.cz>
Fri, 20 Jan 2017 09:45:04 +0000 (10:45 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 20 Jan 2017 09:45:04 +0000 (09:45 +0000)
commit0ce4024a35d3807931eaa7328308dbb45b7f65e7
tree400a6a463e66c0df3b5cd3eec8e993cdf2cfdab6
parent2d8d3ae29381d13789fa5fa349ec5c302b921aac
Do not declare artificial variables in tree-profile.c to have a definition (PR lto/69188).

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.
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.

From-SVN: r244692
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr69188_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr69188_1.c [new file with mode: 0644]
gcc/tree-profile.c