[Bug lto/69188] [5/6/7 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
Fri Jan 20 09:46:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69188
--- Comment #20 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Fri Jan 20 09:45:04 2017
New Revision: 244692
URL: https://gcc.gnu.org/viewcvs?rev=244692&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/lto/pr69188_0.c
trunk/gcc/testsuite/gcc.dg/lto/pr69188_1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-profile.c
More information about the Gcc-bugs
mailing list