Commit 4250d865 by Jakub Jelinek Committed by Jakub Jelinek

re PR testsuite/40426 (Revision 148408 caused many DWARF tests faulures)

	PR testsuite/40426
	* lib/gcc-dg.exp (gcc-dg-debug-runtest): For type -gdwarf-2 and
	level != "" use separate -gdwarf-2 -g${level} options instead of
	-gdwarf-2${level}.
	* lib/gfortran-dg.exp (gfortran-dg-debug-runtest): Likewise.
	* gfortran.dg/debug/pr37738.f: Also skip if -gdwarf-2 -g1.
	* gfortran.dg/debug/pr35154-dwarf2.f: Likewise.

From-SVN: r148497
parent 19751f1f
2009-06-15 Jakub Jelinek <jakub@redhat.com>
PR testsuite/40426
* lib/gcc-dg.exp (gcc-dg-debug-runtest): For type -gdwarf-2 and
level != "" use separate -gdwarf-2 -g${level} options instead of
-gdwarf-2${level}.
* lib/gfortran-dg.exp (gfortran-dg-debug-runtest): Likewise.
* gfortran.dg/debug/pr37738.f: Also skip if -gdwarf-2 -g1.
* gfortran.dg/debug/pr35154-dwarf2.f: Likewise.
2009-06-15 Rafael Avila de Espindola <espindola@google.com> 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
* g++.dg/abi/mangle11.C: Update warning line. * g++.dg/abi/mangle11.C: Update warning line.
......
C Test program for common block debugging. G. Helffrich 11 July 2004. C Test program for common block debugging. G. Helffrich 11 July 2004.
C { dg-do compile } C { dg-do compile }
C { dg-skip-if "DWARF-2 only" { "*-*-*" } { "*" } { "-gdwarf-2" } } C { dg-skip-if "DWARF-2 only" { "*-*-*" } { "*" } { "-gdwarf-2" } }
C { dg-skip-if "DWARF-2 only" { "*-*-*" } { "-g1" } { "" } }
C { dg-options "-dA" } C { dg-options "-dA" }
common i,j common i,j
common /label/l,m common /label/l,m
......
C PR debug/37738 C PR debug/37738
C { dg-do compile } C { dg-do compile }
C { dg-skip-if "DWARF-2 only" { "*-*-*" } { "*" } { "-gdwarf-2" } } C { dg-skip-if "DWARF-2 only" { "*-*-*" } { "*" } { "-gdwarf-2" } }
C { dg-skip-if "DWARF-2 only" { "*-*-*" } { "-g1" } { "" } }
C { dg-options "-dA" } C { dg-options "-dA" }
subroutine a subroutine a
......
# Copyright (C) 1997, 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2008 # Copyright (C) 1997, 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
...@@ -289,10 +289,18 @@ proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } { ...@@ -289,10 +289,18 @@ proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } {
$comp_output] } { $comp_output] } {
remove-build-file "trivial.S" remove-build-file "trivial.S"
foreach level {1 "" 3} { foreach level {1 "" 3} {
lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}"] if { ($type == "-gdwarf-2") && ($level != "") } {
foreach opt $opt_opts { lappend DEBUG_TORTURE_OPTIONS [list "${type}" "-g${level}"]
lappend DEBUG_TORTURE_OPTIONS \ foreach opt $opt_opts {
[list "${type}${level}" "$opt" ] lappend DEBUG_TORTURE_OPTIONS \
[list "${type}" "-g${level}" "$opt" ]
}
} else {
lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}"]
foreach opt $opt_opts {
lappend DEBUG_TORTURE_OPTIONS \
[list "${type}${level}" "$opt" ]
}
} }
} }
} }
...@@ -320,7 +328,8 @@ proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } { ...@@ -320,7 +328,8 @@ proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } {
if { ([string match {*/debug-[126].c} "$nshort"] \ if { ([string match {*/debug-[126].c} "$nshort"] \
|| [string match {*/enum-1.c} "$nshort"] \ || [string match {*/enum-1.c} "$nshort"] \
|| [string match {*/enum-[12].C} "$nshort"]) \ || [string match {*/enum-[12].C} "$nshort"]) \
&& [string match "*1" [lindex "$flags" 0] ] } { && ([string match "*1" [lindex "$flags" 0] ]
|| [lindex "$flags" 1] == "-g1") } {
set doit 0 set doit 0
} }
......
...@@ -135,10 +135,18 @@ proc gfortran-dg-debug-runtest { target_compile trivial opt_opts testcases } { ...@@ -135,10 +135,18 @@ proc gfortran-dg-debug-runtest { target_compile trivial opt_opts testcases } {
} }
remove-build-file "trivial.S" remove-build-file "trivial.S"
foreach level {1 "" 3} { foreach level {1 "" 3} {
lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}"] if { ($type == "-gdwarf-2") && ($level != "") } {
foreach opt $opt_opts { lappend DEBUG_TORTURE_OPTIONS [list "${type}" "-g${level}"]
lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}" \ foreach opt $opt_opts {
"$opt" ] lappend DEBUG_TORTURE_OPTIONS \
[list "${type}" "-g${level}" "$opt" ]
}
} else {
lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}"]
foreach opt $opt_opts {
lappend DEBUG_TORTURE_OPTIONS \
[list "${type}${level}" "$opt" ]
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment