Commit 563025ca by Mark Mitchell Committed by Mark Mitchell

gcc-dg.exp (gcc-dg-debug-runtest): Add opt_opts parameter.

	* lib/gcc-dg.exp (gcc-dg-debug-runtest): Add opt_opts parameter.
	* gcc.dg/debug/debug.exp: Pass opt_opts parameter to
	gcc-dg-debug-runtest.
	* g++.dg/debug/debug.exp: Pass opt_opts parameter to
	gcc-dg-debug-runtest.

From-SVN: r66937
parent 567bfee8
2003-05-18 Mark Mitchell <mark@codesourcery.com>
* lib/gcc-dg.exp (gcc-dg-debug-runtest): Add opt_opts parameter.
* gcc.dg/debug/debug.exp: Pass opt_opts parameter to
gcc-dg-debug-runtest.
* g++.dg/debug/debug.exp: Pass opt_opts parameter to
gcc-dg-debug-runtest.
2003-05-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> 2003-05-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/9022 PR c++/9022
......
...@@ -23,7 +23,7 @@ load_lib g++-dg.exp ...@@ -23,7 +23,7 @@ load_lib g++-dg.exp
dg-init dg-init
# Main loop. # Main loop.
gcc-dg-debug-runtest g++_target_compile trivial.C \ gcc-dg-debug-runtest g++_target_compile trivial.C [list -O2 -O3] \
[lsort [glob -nocomplain $srcdir/$subdir/*.C]] [lsort [glob -nocomplain $srcdir/$subdir/*.C]]
# All done. # All done.
......
...@@ -24,7 +24,7 @@ dg-init ...@@ -24,7 +24,7 @@ dg-init
# Main loop. # Main loop.
gcc-dg-debug-runtest gcc_target_compile trivial.c \ gcc-dg-debug-runtest gcc_target_compile trivial.c [list -O -O3] \
[lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]]
# All done. # All done.
......
...@@ -190,7 +190,7 @@ proc gcc-dg-runtest { testcases default-extra-flags } { ...@@ -190,7 +190,7 @@ proc gcc-dg-runtest { testcases default-extra-flags } {
} }
} }
proc gcc-dg-debug-runtest { target_compile trivial testcases } { proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } {
global srcdir subdir global srcdir subdir
if ![info exists DEBUG_TORTURE_OPTIONS] { if ![info exists DEBUG_TORTURE_OPTIONS] {
...@@ -203,7 +203,7 @@ proc gcc-dg-debug-runtest { target_compile trivial testcases } { ...@@ -203,7 +203,7 @@ proc gcc-dg-debug-runtest { target_compile trivial testcases } {
$comp_output] } { $comp_output] } {
foreach level {1 "" 3} { foreach level {1 "" 3} {
lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}"] lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}"]
foreach opt { -O2 -O3 } { foreach opt $opt_opts {
lappend DEBUG_TORTURE_OPTIONS \ lappend DEBUG_TORTURE_OPTIONS \
[list "${type}${level}" "$opt" ] [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