mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user