Re: [PATCH] godump: Fix -fdump-go-spec= reproduceability issue

2021-07-13 Thread Ian Lance Taylor via Gcc-patches
On Tue, Jul 13, 2021 at 12:49 AM Jakub Jelinek wrote: > > 2021-07-13 Jakub Jelinek > > PR go/101407 > * godump.c (godump_str_hash): New type. > (godump_container::pot_dummy_types): Use string_hash instead of > ptr_hash in the hash_set. Thanks for looking at this

[PATCH] godump: Fix -fdump-go-spec= reproduceability issue

2021-07-13 Thread Jakub Jelinek via Gcc-patches
Hi! pot_dummy_types is a hash_set from whose traversal the code prints some type lines. hash_set normally uses default_hash_traits which for pointer types (the hash set hashes const char *) uses pointer_hash which hashes the addresses of the pointers except of the least significant 3 bits. With a