diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-14 09:40:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-21 11:39:30 +0200 |
commit | f8884b9c51faea329196bf5914bcd2d700622c38 (patch) | |
tree | 14c9f970f6756cd58fd00bcaab04e4db9de47b00 /gcc/tree-ssa-ter.c | |
parent | e0335bb7d1fc7dd05e91bcdd1f65b2bcf8ec1a09 (diff) | |
download | gcc-f8884b9c51faea329196bf5914bcd2d700622c38.zip gcc-f8884b9c51faea329196bf5914bcd2d700622c38.tar.gz gcc-f8884b9c51faea329196bf5914bcd2d700622c38.tar.bz2 |
gcov: Fix use of profile info section
If the -fprofile-info-section is used, then the gcov information is registered
in a linker set. This is done by build_gcov_info_var_registration(). The
compiler generated object placed in the section was not marked as referenced,
so once optimization was enabled, this object was optimized away. Mark it as
referenced.
gcc/
* coverage.c (build_gcov_info_var_registration): Mark the object placed
in the linker set as referenced so that it does not get optimized away.
Diffstat (limited to 'gcc/tree-ssa-ter.c')
0 files changed, 0 insertions, 0 deletions