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
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Devang Patel <dpatel at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 8 Aug 2002 07:24:31 +0100
- Subject: Re: cpplib: Start moving switch handling to front ends
- References: <20020807211416.GA27032@daikokuya.co.uk> <876427A4-AA61-11D6-80AB-00039310EDEA@> <20020808003634.GM26853@codesourcery.com>
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.