diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-10 21:38:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-10 21:38:03 +0000 |
commit | 338e05af82a4ff4aef3bccd51572206734c411cb (patch) | |
tree | ef5fb08bcbce0cb0dcd683a3ecd15e764fdeb6ce /gdb/testsuite/lib/compiler.cc | |
parent | d6fd015d6e56f31566d6c754a103693912abcb5c (diff) | |
download | gdb-338e05af82a4ff4aef3bccd51572206734c411cb.zip gdb-338e05af82a4ff4aef3bccd51572206734c411cb.tar.gz gdb-338e05af82a4ff4aef3bccd51572206734c411cb.tar.bz2 |
2004-06-10 Andrew Cagney <cagney@gnu.org>
* lib/compiler.cc, lib/compiler.c: Append either
__GNUC_PATCHLEVEL__, or "unknown" to the compiler_info.
* gdb.base/structs.exp (test_struct_calls): Check for gcc-3-3-*
instead of gcc-3-3.
Diffstat (limited to 'gdb/testsuite/lib/compiler.cc')
-rw-r--r-- | gdb/testsuite/lib/compiler.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/compiler.cc b/gdb/testsuite/lib/compiler.cc index 0c5eb66..8059e97 100644 --- a/gdb/testsuite/lib/compiler.cc +++ b/gdb/testsuite/lib/compiler.cc @@ -25,7 +25,12 @@ set compiler_info "" #if defined (__GNUC__) -set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ } -] +#if defined (__GNUC_PATCHLEVEL__) +/* Only GCC versions >= 3.0 define the __GNUC_PATCHLEVEL__ macro. */ +set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__} -] +#else +set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ "unknown"} -] +#endif set gcc_compiled __GNUC__ #else set gcc_compiled 0 |