]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: class hotness attribute and member template
authorJason Merrill <jason@redhat.com>
Tue, 12 Dec 2023 19:41:39 +0000 (14:41 -0500)
committerJason Merrill <jason@redhat.com>
Tue, 12 Dec 2023 23:49:04 +0000 (18:49 -0500)
commitb75683039960a621a0d7dd7c42eea32b7d2eff4d
tree9f080ab0c724aa656fc193d8aed0b07fcc4f7d35
parent8501edba91ea63bdfc045f1cb66fb1c242e44e80
c++: class hotness attribute and member template

The FUNCTION_DECL check ignored member function templates.

gcc/cp/ChangeLog:

* class.cc (propagate_class_warmth_attribute): Handle
member templates.

gcc/testsuite/ChangeLog:

* g++.dg/ext/attr-hotness.C: Add member templates.

Co-authored-by: Jason Xu <rxu@DRWHoldings.com>
gcc/cp/class.cc
gcc/testsuite/g++.dg/ext/attr-hotness.C