This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: Start moving switch handling to front ends
On Thu, Aug 08, 2002 at 10:37:05AM -0700, Devang Patel wrote:
> >
> >It would not be that hard to do the inode/dev check after opening the
> >file, we call fstat() anyway. And that'd be a good idea. (Have to
> >figure
> >out a way to index the include cache on two different keys, though.)
>
> We do have local inode/dev check. Here is the code snippet...
[...]
Yes, I am interested in seeing this cleaned up for submission. You do
need to do some work first - for instance, those static variables must
go.
In some workloads the existing cpp spends ~10% of runtime in splay
tree lookups. If we're dinking with this anyway, we might want to
think about a better data structure to use.
zw