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]

Re: cpplib: Start moving switch handling to front ends


Zack 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.

I'm all for banging #pragma once on the head for 3.4 though, so it
becomes an unknown pragma and treated like any other.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]