From e5163ec1df8755de70b711022314220318a0a441 Mon Sep 17 00:00:00 2001 From: Senthil Kumar Selvaraj Date: Tue, 18 Oct 2016 11:58:52 +0000 Subject: [PATCH] Return earlier if not effective_target_int32 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 * gcc.dg/sso/sso.exp: Return early if not effective_target_int32. From-SVN: r241302 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/sso/sso.exp | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ad84587141..1d3809f4549 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-10-18 Senthil Kumar Selvaraj + + * gcc.dg/sso/sso.exp: Return early if not + effective_target_int32. + 2016-10-18 Richard Biener * gcc.dg/tree-ssa/pr20318.c: Disable EVRP. diff --git a/gcc/testsuite/gcc.dg/sso/sso.exp b/gcc/testsuite/gcc.dg/sso/sso.exp index 87dd49417f1..a6755344a53 100644 --- a/gcc/testsuite/gcc.dg/sso/sso.exp +++ b/gcc/testsuite/gcc.dg/sso/sso.exp @@ -18,6 +18,10 @@ 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]] "" "" -- 2.30.2