This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [PATCH] gcc.dg/debug.exp only test debug-[12] on Dwarf targets


>>>>> Richard Henderson writes:

Richard> On Mon, May 12, 2003 at 11:05:10AM -0400, David Edelsohn wrote:
>> Do you want me to refer to that thread in the comment?

Richard> Yes please.  I'd already forgotten all about it.

	* debug/debug.exp: Skip debug-[12].c at -O3 on non-Dwarf2 targets.

Index: debug.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug.exp,v
retrieving revision 1.1
diff -c -p -r1.1 debug.exp
*** debug.exp	26 Jan 2002 02:38:57 -0000	1.1
--- debug.exp	12 May 2003 17:17:50 -0000
*************** foreach test [lsort [glob -nocomplain $s
*** 66,72 ****
  		&& [string match "*1" [lindex "$flags" 0] ] } { 
  	    set doit 0
  	}
! 	
  	if { $doit } {
  	    verbose -log "Testing $nshort, $flags" 1
  	    dg-test $test $flags ""
--- 66,83 ----
  		&& [string match "*1" [lindex "$flags" 0] ] } { 
  	    set doit 0
  	}
! 
! # High optimization can remove the variable whose existence is tested.
! # Dwarf debugging with commentary (-dA) preserves the symbol name in the
! # assembler output, but stabs debugging does not.
! # http://gcc.gnu.org/ml/gcc-regression/2003-04/msg00095.html
! 	if { [string match {*/debug-[12].c} "$nshort"] \
! 		&& [string match "*O3*" "$flags"] \
! 		&& ( [string match "*coff*" "$flags"] \
! 		     || [string match "*stabs*" "$flags"] ) } {
! 	    set doit 0
! 	}
! 
  	if { $doit } {
  	    verbose -log "Testing $nshort, $flags" 1
  	    dg-test $test $flags ""


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