Hi,

 

C evolves and supports new features over the time.

Do we want to support upcoming features like prototypes without parameters
(as in C++)? See below:

 

jullien@fedora:~ $ cat foo.c

void foo(int) {}

 

jullien@fedora:~ $ tcc -c foo.c

foo.c:1: error: identifier expected

 

It is otherwise supported by recent gcc/clang compilers

 

jullien@fedora:~ $ gcc -v

.

gcc version 11.1.1 20210531 (Red Hat 11.1.1-3) (GCC)

 

jullien@fedora:~ $ clang -v

.

clang version 12.0.0 (Fedora 12.0.0-2.fc34)

 

jullien@fedora:~ $ clang -std=c2x -c foo.c

jullien@fedora:~ $ gcc -std=c2x -c foo.c

 

gcc11 works even w.o. -std=c2x

jullien@fedora:~ $ gcc -c foo.c

 

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to