This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit/obvious/testsuite] volatile.exp: use test_compiler_info


Here's another little patch to migrate from gcc_compiled to
test_compiler_info.  I just did this to take a break from other work.

Testing: gcc v2 and v3, -gdwarf-2 and -gstabs+.

I am committing this now as an obvious fix.

Michael C

2003-11-27  Michael Chastain  <mec.gnu@mindspring.com>

	Partial fix for PR testsuite/1456.
	* gdb.base/volatile.exp: Replace references to gcc_compiled with
	calls to test_compiler_info.

Index: volatile.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/volatile.exp,v
retrieving revision 1.6
diff -c -3 -p -r1.6 volatile.exp
*** volatile.exp	29 Jun 2003 20:01:59 -0000	1.6
--- volatile.exp	28 Nov 2003 03:20:32 -0000
*************** if ![runto_main] then {
*** 88,96 ****
  get_debug_format
  
  proc local_compiler_xfail_check { } {
!     global gcc_compiled;
! 
!     if {$gcc_compiled == 2} then {
  	if { ![test_debug_format "HP"] \
  		&& ![test_debug_format "DWARF 2"] } then {
  	    setup_xfail "*-*-*" 
--- 88,94 ----
  get_debug_format
  
  proc local_compiler_xfail_check { } {
!     if { [test_compiler_info gcc-2-*] } then {
  	if { ![test_debug_format "HP"] \
  		&& ![test_debug_format "DWARF 2"] } then {
  	    setup_xfail "*-*-*" 
*************** gdb_test "ptype vendor" "type = const vo
*** 258,264 ****
  
  # test function parameters
  local_compiler_xfail_check
! if {$gcc_compiled == 3 && [test_debug_format "stabs"]} then {
      # For reasons unknown, GCC 3 with stabs mangles several cv-qualified
      # arguments to this function.
      setup_xfail "*-*-*"
--- 256,262 ----
  
  # test function parameters
  local_compiler_xfail_check
! if { [test_compiler_info gcc-3-*] && [test_debug_format "stabs"] } then {
      # For reasons unknown, GCC 3 with stabs mangles several cv-qualified
      # arguments to this function.
      setup_xfail "*-*-*"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]