[PING] [PATCH] rs6000: testsuite: Add rop_ok effective-target function
Peter Bergner
bergner@linux.ibm.com
Thu Dec 2 16:28:55 GMT 2021
I'd like to ping the following patch.
The test case in the previously OK'd fix for PR101324 depends on this change,
so I've had to hold off committing it until this is in. Thanks.
https://gcc.gnu.org/pipermail/gcc-patches/2021-November/584208.html
Peter
Message-ID: <fd15cd08-440c-fc3a-eef8-6b7a279e4b44@linux.ibm.com>
This patch adds a new effective-target function that tests whether
it is safe to emit the ROP-protect instructions and updates the
ROP test cases to use it.
Segher, as we discussed offline, this uses the double [] which you said
isn't needed in general regex's, but for some reason is needed in the gcc
testsuite regex.
Tested on powerpc64le*-linux with no regressions. Ok for mainline?
Peter
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_rop_ok): New function.
* gcc.target/powerpc/rop-1.c: Use it.
* gcc.target/powerpc/rop-2.c: Likewise.
* gcc.target/powerpc/rop-3.c: Likewise.
* gcc.target/powerpc/rop-4.c: Likewise.
* gcc.target/powerpc/rop-5.c: Likewise.
More information about the Gcc-patches
mailing list