Re: [committed] input.c: move file caching globals to a new file_cache class

2021-07-14 Thread David Malcolm via Gcc-patches
On Sun, 2021-07-11 at 12:58 -0400, Lewis Hyatt wrote: > Hi David- > > I thought this might be a good opportunity to ask about the patch > that > supports -finput-charset in diagnostic.c please? > https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564527.html > > The patch will require some

Re: [committed] input.c: move file caching globals to a new file_cache class

2021-07-11 Thread Lewis Hyatt via Gcc-patches
Hi David- I thought this might be a good opportunity to ask about the patch that supports -finput-charset in diagnostic.c please? https://gcc.gnu.org/pipermail/gcc-patches/2021-January/564527.html The patch will require some work to adapt to the new changes below. I am happy to do that, but

[committed] input.c: move file caching globals to a new file_cache class

2021-07-01 Thread David Malcolm via Gcc-patches
This moves some global state from input.c to a new file_cache class, of which an instance is owned by global_dc. Various state is also made private. No functional change intended. Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Pushed to trunk as