Re: [PATCH] String contents hash map key example

2019-01-19 Thread Richard Sandiford
Michael Ploujnikov writes: > I thought it would be useful to others who are new to the GCC codebase > to have an example of how to hash keys based on string contents rather > than pointer addresses (the fact that some hash maps key based on > semi-reliable pointers (due to ggc_mark_stringpool)

[PATCH] String contents hash map key example

2019-01-18 Thread Michael Ploujnikov
I thought it would be useful to others who are new to the GCC codebase to have an example of how to hash keys based on string contents rather than pointer addresses (the fact that some hash maps key based on semi-reliable pointers (due to ggc_mark_stringpool) into the symtab gives a false sense of