[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TinyCC bugs
From: |
Bruno Haible |
Subject: |
Re: TinyCC bugs |
Date: |
Sun, 17 Oct 2010 01:11:47 +0200 |
User-agent: |
KMail/1.9.9 |
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