This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thursday, August 8, 2002, at 12:11 AM, Zack Weinberg wrote:
We do have local inode/dev check. Here is the code snippet...On Thu, Aug 08, 2002 at 07:24:31AM +0100, Neil Booth wrote:It would not be that hard to do the inode/dev check after opening theZack Weinberg wrote:-No, really. The semantics of #import (and #pragma once) require that the compiler be able to determine whether two include requests refer to the same file, with 100% accuracy, for _correctness_. This is impossible without making unportable assumptions about file system semantics, which cpplib does not do.We have them at the top of cppinit.c for duplicate directory checking. Are you sure there's nothing we can do (granted, it might be a bit awkward). I think expecting the millions of lines of ObjC code to suddenly stop using it is a bit much.
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.)
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |