From: Peter Bergner Date: Tue, 7 Dec 2021 20:42:38 +0000 (-0600) Subject: testsuite: Fix check_effective_target_rop_ok [PR103556, PR103586] X-Git-Tag: upstream/12.2.0~2870 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4394fd67264f5de650c2c3509c001c5f7203449d;p=platform%2Fupstream%2Fgcc.git testsuite: Fix check_effective_target_rop_ok [PR103556, PR103586] The new rop_ok effective target test doesn't correctly compute its expression result because a new line starts a new statement. Solution is to remove the new line. 2021-12-07 Peter Bergner gcc/testsuite/ PR testsuite/103556 PR testsuite/103586 * lib/target-supports.exp (check_effective_target_rop_ok): Remove '\n'. --- diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7956c38..039125c 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -6631,8 +6631,7 @@ proc check_effective_target_powerpc_elfv2 { } { # Return 1 if this is a PowerPC target supporting -mrop-protect proc check_effective_target_rop_ok { } { - return [check_effective_target_power10_ok] - && [check_effective_target_powerpc_elfv2] + return [check_effective_target_power10_ok] && [check_effective_target_powerpc_elfv2] } # The VxWorks SPARC simulator accepts only EM_SPARC executables and