Caching of include files breaks compilation?

Zack Weinberg zack@codesourcery.com
Thu Jun 10 19:27:00 GMT 2004


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"

...

> 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?

Error in GCC.  I even think I know what's wrong.  Will investigate,
but would you please file a bug report and assign it to me, so I don't
forget?

zw



More information about the Gcc mailing list