re PR ipa/93087 (Bogus `-Wsuggest-attribute=cold` on function already marked as ...
authorJakub Jelinek <jakub@redhat.com>
Thu, 2 Jan 2020 09:15:00 +0000 (10:15 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 2 Jan 2020 09:15:00 +0000 (10:15 +0100)
commit4ea5d54b3c7175de045589f994fc94ed7e59d80d
tree4472bba5f8bb5925bc2f7a9345c82197dd3b83f1
parent2b70275ee1b0de038324280276a9edebcaa93d90
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.

From-SVN: r279829
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cold-1.c [new file with mode: 0644]