]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: simplify TEMPLATE_TEMPLATE_PARM hashing
authorPatrick Palka <ppalka@redhat.com>
Sat, 3 Jun 2023 13:22:52 +0000 (09:22 -0400)
committerPatrick Palka <ppalka@redhat.com>
Sat, 3 Jun 2023 13:22:52 +0000 (09:22 -0400)
commit23bee8508816297a9b2ab81a96aa0c79ac88ceba
tree83612da961bd173ab607a9107c93bf89d584ef61
parent557cc2b721432775a12fcafa60e9b8b0c320c29d
c++: simplify TEMPLATE_TEMPLATE_PARM hashing

r10-7815-gaa576f2a860c82 added special hashing for TEMPLATE_TEMPLATE_PARM
to work around non-lowered ttps having TYPE_CANONICAL set but lowered
ttps did not.  But ever since r13-737-gd0ef9e06197d14 this is no longer
the case, and all ttps should now have TYPE_CANONICAL set.  So this
special hashing is now unnecessary and we can fall back to always using
TYPE_CANONICAL.

gcc/cp/ChangeLog:

* pt.cc (iterative_hash_template_arg): Don't hash
TEMPLATE_TEMPLATE_PARM specially.
gcc/cp/pt.cc