]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Fix up and tweak std-name-hint.gperf
authorJakub Jelinek <jakub@redhat.com>
Thu, 30 Oct 2025 21:37:33 +0000 (22:37 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 30 Oct 2025 21:37:33 +0000 (22:37 +0100)
commitff84c892454f0275209038edd4f68e4b3864ced2
tree7fdd101b8ffe3b9bad2491cd0ae883a20205bc7f
parent75677b21ed557cd9cd5f9aa569c0b42d7df8230f
c++: Fix up and tweak std-name-hint.gperf

When converting reflection metafunction evaluation into gperf, I had
a look at the other *.gperf files in gcc/cp/.
cfns.gperf doesn't have any hash conflicts, but std-name-hint.gperf
has 7, which I believe means that for 7 of the strings it falls back to some
slow loop over not sure how many entries.

Apparently, 2 out of the 7 conflicts are just because two lines are
identically duplicated in the file, the patch included below fixes that.

2025-10-30  Jakub Jelinek  <jakub@redhat.com>

* std-name-hint.gperf: Remove duplicate entries for ispanstream
and istringstream.
* std-name-hint.h: Regenerate.
gcc/cp/std-name-hint.gperf
gcc/cp/std-name-hint.h