From: David Edelsohn Date: Mon, 12 May 2003 21:16:55 +0000 (+0000) Subject: * debug/debug.exp: Skip debug-[12].c at -O3 on non-Dwarf targets. X-Git-Tag: releases/gcc-3.4.0~6625 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c0a5264824315c0b226506e25e44f068a89f780;p=thirdparty%2Fgcc.git * debug/debug.exp: Skip debug-[12].c at -O3 on non-Dwarf targets. From-SVN: r66737 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f6da54e2f40c..41a65c06f6dc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2003-05-12 David Edelsohn + + * debug/debug.exp: Skip debug-[12].c at -O3 on non-Dwarf targets. + 2003-05-12 Kriang Lerdsuwanakij * g++.old-deja/g++.brendan/ns1.C: Remove private member warning. diff --git a/gcc/testsuite/gcc.dg/debug/debug.exp b/gcc/testsuite/gcc.dg/debug/debug.exp index 310ce131cdc8..3495736c69df 100644 --- a/gcc/testsuite/gcc.dg/debug/debug.exp +++ b/gcc/testsuite/gcc.dg/debug/debug.exp @@ -66,7 +66,18 @@ foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] { && [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 ""