On Tue, Sep 25, 2018 at 6:50 AM H.J. Lu <hjl.to...@gmail.com> wrote: > > Issue an error when -mindirect-branch or -mfunction-return are used > with incompatible -fcf-protection. > > gcc/ > > PR target/87412 > * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an > error for -mindirect-branch/-mfunction-return with incompatible > -fcf-protection. > > gcc/testsuite/ > > PR target/87412 > * gcc.target/i386/pr87412-1.c: New file. > * gcc.target/i386/pr87412-2.c: Likewise. > * gcc.target/i386/pr87412-3.c: Likewise. > * gcc.target/i386/pr87412-4.c: Likewise. > --- > gcc/config/i386/i386.c | 10 ++++++++++ > gcc/testsuite/gcc.target/i386/pr87412-1.c | 9 +++++++++ > gcc/testsuite/gcc.target/i386/pr87412-2.c | 10 ++++++++++ > gcc/testsuite/gcc.target/i386/pr87412-3.c | 9 +++++++++ > gcc/testsuite/gcc.target/i386/pr87412-4.c | 7 +++++++ > 5 files changed, 45 insertions(+) > create mode 100644 gcc/testsuite/gcc.target/i386/pr87412-1.c > create mode 100644 gcc/testsuite/gcc.target/i386/pr87412-2.c > create mode 100644 gcc/testsuite/gcc.target/i386/pr87412-3.c > create mode 100644 gcc/testsuite/gcc.target/i386/pr87412-4.c >
PING: https://gcc.gnu.org/ml/gcc-patches/2018-09/msg01436.html -- H.J.