re PR ipa/93087 (Bogus `-Wsuggest-attribute=cold` on function already marked as ...
commitf01dfd67820e6a8254e6bf9ea242bf86134486ff
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 14:33:44 +0000 (14 15:33 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 15:01:46 +0000 (14 16:01 +0100)
tree38defb1196733ecc7f3ba53f6cf8614bb9201f19
parentc343d4aab243cb477c65c6d0c37b1a6cdd2f858e
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.
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cold-1.c [new file with mode: 0644]