Return earlier if not effective_target_int32
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 18 Oct 2016 11:58:52 +0000 (11:58 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Tue, 18 Oct 2016 11:58:52 +0000 (11:58 +0000)
Do early return *before* calling dg-init/torture-init. Returning
without calling dg-finish/torture-finish messes up torture-options for
subsequent tests.

gcc/testsuite/
2016-10-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* gcc.dg/sso/sso.exp: Return early if not
effective_target_int32.

From-SVN: r241302

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/sso/sso.exp

index 0ad84587141a8c30b995397f387aeee4120559f0..1d3809f4549444055ef6ccbeea67cee924032e24 100644 (file)
@@ -1,3 +1,8 @@
+2016-10-18  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
+
+       * gcc.dg/sso/sso.exp: Return early if not 
+       effective_target_int32.
+
 2016-10-18  Richard Biener  <rguenther@suse.de>
 
        * gcc.dg/tree-ssa/pr20318.c: Disable EVRP.
index 87dd49417f1bc59412adb8a5649fd93e9abfc6c7..a6755344a5349aac79a2cc293b90aeb6dfac45a0 100644 (file)
 load_lib gcc-dg.exp
 load_lib torture-options.exp
 
+if { ![check_effective_target_int32] } {
+    return
+}
+
 # Initialize `dg'.
 torture-init
 dg-init
@@ -32,10 +36,6 @@ set SSO_TORTURE_OPTIONS [list \
 
 set-torture-options $SSO_TORTURE_OPTIONS
 
-if { ![check_effective_target_int32] } {
-    return
-}
-
 # Main loop.
 gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" ""