[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] -fno-type-redefinition-check ???
From: |
Edmund Grimley Evans |
Subject: |
Re: [Tinycc-devel] -fno-type-redefinition-check ??? |
Date: |
Thu, 5 May 2016 22:17:25 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
You seem to have made TCC stricter than GCC:
$ cat t.c
typedef int x;
typedef int x;
$ gcc -Wall -O2 -c t.c
$ ./tcc -B. -c t.c
t.c:2: error: redeclaration of 'x'
Apparently such redefinitions are not officially allowed in C99, so
TCC is not really wrong in giving an error, if TCC is only claiming to
be a C99 compiler, but they are allowed in C11, so it may turn out to
be rather impracticable to be so strict...