This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Problems with dejagnu and c++ tests...
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: brobecker at gnat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 4 Feb 2004 09:01:31 -0500 (EST)
- Subject: Re: Problems with dejagnu and c++ tests...
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