Sometimes
this would happen, and sometimes the test would pass Ok and a
subsequent test would fail. One math test failed consistently, not with
a Segmentation fault, although without looking at the source code, I am
not sure what this actually means.
The stdio test was really
odd. Basically it seems as if the getc and fgetc library routines don't
correctly return what tcc expects for EOF, or the generated test in the
while loop is faulty code. Code of the form:
f = fopen("fred.txt", "r"); while ( (InChar = getc(f)) != EOF) { ShowChar = InChar; if (ShowChar < ' ')
ShowChar = '.'; printf("ch: %d '%c'\n", InChar, ShowChar); } fclose(f);
loops forever.
These problems occurred whether or not I built with the --with-libgcc flag to configure.
Same repository builds and passes all tests correctly on:
OS: Linux yffulf 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux