testsuite: Fix check_effective_target_rop_ok [PR103556, PR103586]
authorPeter Bergner <bergner@linux.ibm.com>
Tue, 7 Dec 2021 20:42:38 +0000 (14:42 -0600)
committerPeter Bergner <bergner@linux.ibm.com>
Tue, 7 Dec 2021 20:43:30 +0000 (14:43 -0600)
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  <bergner@linux.ibm.com>

gcc/testsuite/
PR testsuite/103556
PR testsuite/103586
* lib/target-supports.exp (check_effective_target_rop_ok): Remove '\n'.

gcc/testsuite/lib/target-supports.exp

index 7956c38..039125c 100644 (file)
@@ -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