On 17 Nov 2005 at 16:20, Waldek Hebisch wrote:
Prof A Olowofoyeku wrote:
- gcc-3.3.5 backend - several failures - see attached log
Most (if not all) seem to be related to predefines. Gpc had a workaround which should be not needed with integrated preprocessor, so I have disable it.
If yo change 0 to 1 in the snippet below (from lang.c line 448):
static void do_def (const char *s) { make_definition (s, 1); #if 0 if (co->print_needed_options) fprintf (stderr, "-D%s ", s); #endif }
the workaround will be active again.
Fixes the problem. After running the testsuite again, there are only 3 failures:
TEST avo7.pas: ./avo7.pas:5: warning: identifiers should not start with an underscore failed
TEST prep1a.pas: f:/mingw/lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined reference to `WinMain@16' collect2: ld returned 1 exit status failed compile: prep1a.pas
TEST prep2p.pas: 13a14,16
_cdecl _fastcall _stdcall
failed
Each of these compiles and runs correctly if compiled directly - e.g. "gpc prep1a.pas" works.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/