I found two new problems with recent commit.
first one:
int main(void) {
char *f(char *s);
}
char *f(char *s) {
return s;
}
results in: error: incompatible types for redefinition of 'f'
second one:
#include <stdio.h>
int main(void) {
_Static_assert(1, "");
_Static_assert(!NULL, "");
}
results in: error: redeclaration of '__Static_assert_function'
Previois version works fine.
There are maybe more problems that I did not find yet.
There is also a gcc warning when compiling:
tccgen.c: In functie ‘move_ref_to_global’:
tccgen.c:1333:32: let op: suggest parentheses around ‘&&’ within ‘||’
[-Wparentheses]
1333 | || (IS_ENUM(s->type.t)) && (bt = VT_ENUM,1)))
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
Herman
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel