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


	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 ""


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