This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Caching of include files breaks compilation?
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: 10 Jun 2004 12:26:25 -0700
- Subject: Re: Caching of include files breaks compilation?
- References: <m3659zyfhj.fsf@gromit.moeb>
Andreas Jaeger <aj@suse.de> writes:
> Consider (this comes from SPEC2k 181.mcf):
> limits.h:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> #define my_limits 1
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> test-includes.c:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> #include <limits.h>
> #include "limits.h"
>
> int
> main (void)
> {
> #ifndef my_limits
> #error "wrong limits included"
> #endif
> return 0;
> }
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> With GCC 3.4 both files are included but GCC 3.5 CVS of today not.
> This has been broken between the tree-ssa merge and 2004-06-07. Is
> this an error in GCC or a non-conforming program?
This is supposed to work.
--
- Geoffrey Keating <geoffk@geoffk.org>