Re: Usage of the C++ stdlib unordered_map in GCC

2022-08-31 Thread Tim Lange
On Mi, Aug 31 2022 at 10:35:08 -0400, Jason Merrill via Gcc wrote: Generally we want to use the GCC hash_map because it works with GCC garbage collection (and PCH). Is that not relevant to your patch? Jason The map is only part a short-lived visitor object inside the analyzer and is used

Re: Usage of the C++ stdlib unordered_map in GCC

2022-08-31 Thread Jason Merrill via Gcc
On Wed, Aug 31, 2022 at 5:38 AM Jonathan Wakely via Gcc wrote: > On Tue, 30 Aug 2022 at 21:08, Marek Polacek via Gcc > wrote: > > > > On Tue, Aug 30, 2022 at 09:57:45PM +0200, Tim Lange wrote: > > > Hello, > > > > > > I was preparing a patch for GCC and used the unordered_map from the C++ > > >

Re: Usage of the C++ stdlib unordered_map in GCC

2022-08-31 Thread Jonathan Wakely via Gcc
On Tue, 30 Aug 2022 at 21:08, Marek Polacek via Gcc wrote: > > On Tue, Aug 30, 2022 at 09:57:45PM +0200, Tim Lange wrote: > > Hello, > > > > I was preparing a patch for GCC and used the unordered_map from the C++ > > stdlib in my patch. Later on, I noticed that it is used nowhere else inside > >

Re: Usage of the C++ stdlib unordered_map in GCC

2022-08-30 Thread Marek Polacek via Gcc
On Tue, Aug 30, 2022 at 09:57:45PM +0200, Tim Lange wrote: > Hello, > > I was preparing a patch for GCC and used the unordered_map from the C++ > stdlib in my patch. Later on, I noticed that it is used nowhere else inside > GCC except for some files in the go frontend. > > I wondered, now that

Usage of the C++ stdlib unordered_map in GCC

2022-08-30 Thread Tim Lange
Hello, I was preparing a patch for GCC and used the unordered_map from the C++ stdlib in my patch. Later on, I noticed that it is used nowhere else inside GCC except for some files in the go frontend. I wondered, now that building GCC requires a C++11 host compiler, whether there is a