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

David Edelsohn dje@watson.ibm.com
Mon May 12 04:07:00 GMT 2003


	How about the following?

	* 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 04:06:54 -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,81 ----
  		&& [string match "*1" [lindex "$flags" 0] ] } { 
  	    set doit 0
  	}
! 
! # Stabs debugging information does not preserve the automatic variable
! # symbol name at -O3.
! 	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 ""



More information about the Gcc-patches mailing list