[Ctool-develop] testing the gcc test suite
Brought to you by:
flisakow
From: Stefan S. <se...@sy...> - 2003-09-03 12:47:44
|
hi there, I'm looking into the regression testing as I want to get that up and running again as a precondition for any non-trivial code changes. Specifically, I'm looking into the gcc test suite. Trying to compile the 'attrib' test, I run into various problems: * the file containing the expected output (run/attrib.out) contains a lot more than the output generated by the actual test run ('../../src/ctdemo run/attrib.c'), i.e. symbol, tag, and label listings. It seems the command used by the run_suite script isn't quite complete. Adding '-d' will add most of the missing stuff, though the listed names are mangled somehow, they appear to contain the location in the source file or something like that... * the run/attrib.c file compiled with my gcc (3.2.2) generates a warning: run/attrib.c:14: Warning - old-style declaration or incorrect type: __attribute__ ((__format__ (printf, 2, 3))); Is that a recent addition to gcc ? Should that be fixed in the ctool ? Or is there something else that can be done to make this warning go away ? The same warning is issued at various places with other source files from that test suite as well. * /usr/include/gconf.h generates an error message: /usr/include/gconv.h:176: Unsized array not allowed as field: __extension__ struct __gconv_step_data __data []; Unfortunately I'm not a C expert, so I can't really comment on this, other than that I see the line in gram.y that issues this message. I'v no idea whether that's a gcc extension, or generally how to deal with that. * once again the question concerning 'warning: "__STDC__" redefined': what's causing this ? Does the ctdemo define and inject that macro into the preprocessor ? It seems to be defined by my system (either compiler or system headers or a combination thereof). I would hugely appreciate some help on getting this stuff up and running, it would make it much easier to validate future code changes... Thanks a lot ! Stefan |