[Bug ipa/93087] Bogus `-Wsuggest-attribute=cold` on function already marked as `__attribute__((cold))`
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 14 16:37:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93087
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:f01dfd67820e6a8254e6bf9ea242bf86134486ff
commit r8-10002-gf01dfd67820e6a8254e6bf9ea242bf86134486ff
Author: Jakub Jelinek <jakub@redhat.com>
Date: Fri Feb 14 15:33:44 2020 +0100
re PR ipa/93087 (Bogus `-Wsuggest-attribute=cold` on function already
marked as `__attribute__((cold))`)
PR ipa/93087
* predict.c (compute_function_frequency): Don't call
warn_function_cold on functions that already have cold attribute.
* c-c++-common/cold-1.c: New test.
More information about the Gcc-bugs
mailing list