Revert "[testsuite/guality] Run guality tests with Og"
authorTom de Vries <vries@gcc.gnu.org>
Sun, 15 Jul 2018 08:46:30 +0000 (08:46 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sun, 15 Jul 2018 08:46:30 +0000 (08:46 +0000)
This reverts commit 6b84828445f7875d1dddbd90a8d86b10c4e8e776.

From-SVN: r262667

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/guality/guality.exp
gcc/testsuite/gcc.dg/guality/guality.exp
gcc/testsuite/gfortran.dg/guality/guality.exp
gcc/testsuite/lib/gcc-gdb-test.exp

index 54834e99470cff6ddbbd6e7532641409fa933209..b19764297117c2067ef66952ff28e30b9b493b1e 100644 (file)
@@ -1,10 +1,3 @@
-2018-07-15  Tom de Vries  <tdevries@suse.de>
-
-       * lib/gcc-gdb-test.exp (guality_minimal_options): New proc.
-       * g++.dg/guality/guality.exp: Ensure Og is part of torture options.
-       * gcc.dg/guality/guality.exp: Same.
-       * gfortran.dg/guality/guality.exp: Same.
-
 2018-07-13  H.J. Lu  <hongjiu.lu@intel.com>
            Sunil K Pandey  <sunil.k.pandey@intel.com>
 
index 757b20b61e24e8df263ec708daade879e77a05bc..4be22baa19c0f225547677e0ac67ca35d6fb7f18 100644 (file)
@@ -48,14 +48,6 @@ if ![info exists ::env(GUALITY_GDB_NAME)] {
 }
 report_gdb $::env(GUALITY_GDB_NAME) [info script]
 
-global DG_TORTURE_OPTIONS LTO_TORTURE_OPTIONS
-set guality_dg_torture_options [guality_minimal_options $DG_TORTURE_OPTIONS]
-torture-init
-set-torture-options \
-    $guality_dg_torture_options \
-    [list {}] \
-    $LTO_TORTURE_OPTIONS
-
 if {[check_guality "
   #include \"$srcdir/$subdir/guality.h\"
   volatile long int varl = 6;
@@ -73,5 +65,4 @@ if [info exists guality_gdb_name] {
     unsetenv GUALITY_GDB_NAME
 }
 
-torture-finish
 dg-finish
index ca77a446f86be97bf5e482eb4eafeb8b95c2f071..d9994341477ca635bfa98e53d524bc03b0e1c2dc 100644 (file)
@@ -62,8 +62,7 @@ proc guality_transform_options { args } {
 }
 
 global DG_TORTURE_OPTIONS
-set guality_dg_torture_options [guality_minimal_options $DG_TORTURE_OPTIONS]
-set guality_dg_torture_options [guality_transform_options $guality_dg_torture_options]
+set guality_dg_torture_options [guality_transform_options $DG_TORTURE_OPTIONS]
 set guality_lto_torture_options [guality_transform_options $LTO_TORTURE_OPTIONS]
 torture-init
 set-torture-options \
index dad6e4d8f66e7d243f2d51ff1c0de5338af1af2d..f76347dd52fc191e49e8bed1a7abd2513f176b3e 100644 (file)
@@ -29,15 +29,10 @@ if ![info exists ::env(GUALITY_GDB_NAME)] {
 }
 report_gdb $::env(GUALITY_GDB_NAME) [info script]
 
-global DG_TORTURE_OPTIONS
-set save_dg_torture_options $DG_TORTURE_OPTIONS
-set DG_TORTURE_OPTIONS [guality_minimal_options $DG_TORTURE_OPTIONS]
-
 gfortran-dg-runtest [lsort [glob $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ]] "" ""
 
 if [info exists guality_gdb_name] {
     unsetenv GUALITY_GDB_NAME
 }
 
-set DG_TORTURE_OPTIONS save_dg_torture_options
 dg-finish
index b13d3ec7f85e6a936a5b4ef17184fba0dbe11a45..bb966d43023e7b3098ba8c63e82e4f3507b0ef19 100644 (file)
@@ -166,17 +166,3 @@ proc report_gdb { gdb loc } {
     }
     send_log -- "---\n$gdb_version\n---\n"
 }
-
-# Argument 0 is the option list.
-# Return the option list, ensuring that at least -Og is present.
-
-proc guality_minimal_options { args } {
-    set options [lindex $args 0]
-    foreach opt $options {
-       if { [regexp -- "-Og" $opt] } {
-           return $options
-       }
-    }
-    
-    return [lappend options "-Og"]
-}