aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-05-18 18:59:56 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-05-18 18:59:56 +0000
commit563025ca97c9cbfa1cf3a6edc3bb671779ec4860 (patch)
tree295cba29580a51e28be5633a79540f07f993a4da
parent567bfee8168336fa9549fbbacaba774f46eca34d (diff)
downloadgcc-563025ca97c9cbfa1cf3a6edc3bb671779ec4860.zip
gcc-563025ca97c9cbfa1cf3a6edc3bb671779ec4860.tar.gz
gcc-563025ca97c9cbfa1cf3a6edc3bb671779ec4860.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog8
-rw-r--r--gcc/testsuite/g++.dg/debug/debug.exp2
-rw-r--r--gcc/testsuite/gcc.dg/debug/debug.exp2
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp4
4 files changed, 12 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5a4ce5a..f2aa0b2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+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>
PR c++/9022
diff --git a/gcc/testsuite/g++.dg/debug/debug.exp b/gcc/testsuite/g++.dg/debug/debug.exp
index 8d6b1e8..73173a6 100644
--- a/gcc/testsuite/g++.dg/debug/debug.exp
+++ b/gcc/testsuite/g++.dg/debug/debug.exp
@@ -23,7 +23,7 @@ load_lib g++-dg.exp
dg-init
# 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]]
# All done.
diff --git a/gcc/testsuite/gcc.dg/debug/debug.exp b/gcc/testsuite/gcc.dg/debug/debug.exp
index fb83046..65ecf28 100644
--- a/gcc/testsuite/gcc.dg/debug/debug.exp
+++ b/gcc/testsuite/gcc.dg/debug/debug.exp
@@ -24,7 +24,7 @@ dg-init
# 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\]]]
# All done.
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index 241710c..f01cd8a 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -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
if ![info exists DEBUG_TORTURE_OPTIONS] {
@@ -203,7 +203,7 @@ proc gcc-dg-debug-runtest { target_compile trivial testcases } {
$comp_output] } {
foreach level {1 "" 3} {
lappend DEBUG_TORTURE_OPTIONS [list "${type}${level}"]
- foreach opt { -O2 -O3 } {
+ foreach opt $opt_opts {
lappend DEBUG_TORTURE_OPTIONS \
[list "${type}${level}" "$opt" ]
}