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/testsuite/obvious] mips_pro.exp, test_compiler_info


Here is today's test_compiler_info patch.

Tested with native i686-pc-linux-gnu, gcc 2.95.3 and 3.3.2, dwarf-2 and stabs+.

I am committing this now as an obvious fix.

Michael C

2003-12-02  Michael Chastain  <mec.gnu@mindspring.com>

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

Index: mips_pro.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/mips_pro.exp,v
retrieving revision 1.4
diff -c -3 -p -r1.4 mips_pro.exp
*** mips_pro.exp	20 Jan 2003 15:40:07 -0000	1.4
--- mips_pro.exp	2 Dec 2003 17:51:28 -0000
*************** if [get_compiler_info ${binfile}] {
*** 37,43 ****
  
  # This test must be compiled with -O2 if using gcc.
  
! if {$gcc_compiled} then {
      if  { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" executable {debug additional_flags=-O2}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
      }
--- 37,43 ----
  
  # This test must be compiled with -O2 if using gcc.
  
! if { [test_compiler_info gcc-*-*] } then {
      if  { [gdb_compile "${srcdir}/$subdir/${srcfile}" "${binfile}" executable {debug additional_flags=-O2}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
      }
*************** if [runto middle] then {
*** 56,62 ****
      # PR 3016
      #   warning: Hit heuristic-fence-post without finding
      #   warning: enclosing function for pc 0x1006ead0
!     if {$gcc_compiled} then { 
  	setup_xfail "mips*-sgi-irix4*" "mips64*-*-elf"
      }
      # The call chain is main -> top -> middle.  But gcc can optimize a tail
--- 56,62 ----
      # PR 3016
      #   warning: Hit heuristic-fence-post without finding
      #   warning: enclosing function for pc 0x1006ead0
!     if { [test_compiler_info gcc-*-*] } then {
  	setup_xfail "mips*-sgi-irix4*" "mips64*-*-elf"
      }
      # The call chain is main -> top -> middle.  But gcc can optimize a tail


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