aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bergner <bergner@linux.ibm.com>2024-07-18 18:01:46 -0500
committerPeter Bergner <bergner@linux.ibm.com>2024-07-19 10:17:07 -0500
commitb2f47a5c1d5204131660ea0372a08e692df8844e (patch)
tree2e9620fe93b80eaf3d7e5ba45d5a67e346dc9434
parent58a9f3ded1a0ccc2c8b0a42f976950041734798e (diff)
downloadgcc-b2f47a5c1d5204131660ea0372a08e692df8844e.zip
gcc-b2f47a5c1d5204131660ea0372a08e692df8844e.tar.gz
gcc-b2f47a5c1d5204131660ea0372a08e692df8844e.tar.bz2
rs6000: Catch unsupported ABI errors when using -mrop-protect [PR114759,PR115988]
2024-07-18 Peter Bergner <bergner@linux.ibm.com> gcc/testsuite/ PR target/114759 PR target/115988 * gcc.target/powerpc/pr114759-3.c: Catch unsupported ABI errors.
-rw-r--r--gcc/testsuite/gcc.target/powerpc/pr114759-3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/pr114759-3.c b/gcc/testsuite/gcc.target/powerpc/pr114759-3.c
index 6770a9a..e2f1d42 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr114759-3.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr114759-3.c
@@ -2,7 +2,8 @@
/* { dg-do compile } */
/* { dg-options "-O2 -mdejagnu-cpu=power7 -mrop-protect" } */
-/* Verify we emit an error if we use -mrop-protect with an unsupported cpu. */
+/* Verify we emit an error if we use -mrop-protect with an unsupported cpu
+ or ABI. */
extern void foo (void);
@@ -17,3 +18,4 @@ bar (void)
in the final line (which is all that dg-error inspects). Hence, we have
to tell dg-error to ignore the line number. */
/* { dg-error "'-mrop-protect' requires '-mcpu=power8'" "PR114759" { target *-*-* } 0 } */
+/* { dg-error "'-mrop-protect' requires the ELFv2 ABI" "PR114759" { target { ! rop_ok } } 0 } */