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-6b7a279e4...@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.

Reply via email to