2004-06-09 Andrew Cagney * lib/compiler.cc, lib/compiler.c: Append __GNUC_PATCHLEVEL__ to the compiler_info. * gdb.base/structs.exp (test_struct_calls): Check for gcc-3-3-* instead of gcc-3-3. Index: gdb.base/structs.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/structs.exp,v retrieving revision 1.20 diff -p -u -r1.20 structs.exp --- gdb.base/structs.exp 9 Jun 2004 17:27:57 -0000 1.20 +++ gdb.base/structs.exp 9 Jun 2004 17:39:08 -0000 @@ -218,8 +218,8 @@ proc test_struct_calls { n } { set tests "call $n ${testfile}" # Call fun${n}, checking the printed return-value. - setup_compiler_kfails structs-tc-tll gcc-3-3 "DWARF 2" i*86-*-* gdb/1455 - setup_compiler_kfails structs-tc-td gcc-3-3 "DWARF 2" i*86-*-* gdb/1455 + setup_compiler_kfails structs-tc-tll gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455 + setup_compiler_kfails structs-tc-td gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455 gdb_test "p/c fun${n}()" "[foo ${n}]" "p/c fun(); ${tests}" # Check that GDB can always pass a structure to an inferior function. @@ -230,8 +230,8 @@ proc test_struct_calls { n } { # examining that global to confirm that the value is as expected. gdb_test "call Fun${n}(foo${n})" "" "call Fun(foo); ${tests}" - setup_compiler_kfails structs-tc-tll gcc-3-3 "DWARF 2" i*86-*-* gdb/1455 - setup_compiler_kfails structs-tc-td gcc-3-3 "DWARF 2" i*86-*-* gdb/1455 + setup_compiler_kfails structs-tc-tll gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455 + setup_compiler_kfails structs-tc-td gcc-3-3-* "DWARF 2" i*86-*-* gdb/1455 gdb_test "p/c L${n}" [foo ${n}] "p/c L; ${tests}" } Index: lib/compiler.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.c,v retrieving revision 1.3 diff -p -u -r1.3 compiler.c --- lib/compiler.c 24 Jan 2004 21:59:03 -0000 1.3 +++ lib/compiler.c 9 Jun 2004 17:39:08 -0000 @@ -37,7 +37,11 @@ set compiler_info "" #if defined (__GNUC__) -set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ } -] +#if defined (__GNUC_PATCHLEVEL__) +set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__} -] +#else +set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ ""} -] +#endif set gcc_compiled __GNUC__ #else set gcc_compiled 0 Index: lib/compiler.cc =================================================================== RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.cc,v retrieving revision 1.5 diff -p -u -r1.5 compiler.cc --- lib/compiler.cc 24 Jan 2004 21:59:03 -0000 1.5 +++ lib/compiler.cc 9 Jun 2004 17:39:08 -0000 @@ -25,7 +25,11 @@ set compiler_info "" #if defined (__GNUC__) -set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ } -] +#if defined (__GNUC_PATCHLEVEL__) +set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__} -] +#else +set compiler_info [join {gcc __GNUC__ __GNUC_MINOR__ ""} -] +#endif set gcc_compiled __GNUC__ #else set gcc_compiled 0