Ludo,

> > I can reproduce it like this:
> >
> > ---------------- stdlib.h --------------------
> > #include <stdlib.h>
> > ---------------- foo.c -----------------------
> > #include <stdlib.h>
> > ----------------------------------------------
> > $ /arch/x86-linux/gnu-inst-tcc/0.9.25/bin/tcc -c -I. -I. foo.c
> > In file included from foo.c:1:
> > In file included from ./stdlib.h:1:
> 
> [...]
> 
> > ./stdlib.h:1: #include recursion too deep
> 
> Hmm but you get the same behavior with gcc.  Did you mean #include_next?

Yes, sorry. Simple copy&paste bug. Here once again the test case:

$ cat stdlib.h 
#include_next <stdlib.h>

$ cat foo.c
#include <stdlib.h>
$ gcc -c -I. -I. foo.c
$ /arch/x86-linux/gnu-inst-tcc/0.9.25/bin/tcc -c -I. -I. foo.c
In file included from foo.c:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
In file included from ./stdlib.h:1:
./stdlib.h:1: #include recursion too deep

Bruno

Reply via email to