Problems with dejagnu and c++ tests...
Michael Elizabeth Chastain
mec.gnu@mindspring.com
Wed Feb 4 14:01:00 GMT 2004
Well, you could just add "return 1" to skip_cplus_tests on that system.
But in the long run, get_compiler_info needs to be smarter.
(Really, default_target_compile needs to have a better interface,
but we can't touch that).
Perhaps we should just kill get_compiler_info and add some more
code to initialization. Have it compile and run two test programs,
one in C, and one in C++. Like this:
#include <stdio.h>
int main ()
{
#if defined(__GNUC__)
printf ("set compiler_info gcc-%d-%d\n", __GNUC__, __GNUC__MINOR__);
printf ("set gcc_compiled %d\n", __GNUC__);
else
printf ("set gcc_compiled 0\n")
#endif
}
Then just save the results and have get_compiler_info set the right
results for the language specified.
Michael C
More information about the Gdb-patches
mailing list