Caching of include files breaks compilation?

Andreas Jaeger aj@suse.de
Thu Jun 10 08:38:00 GMT 2004


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?

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040610/e1b83566/attachment.sig>


More information about the Gcc mailing list