Bug ID: 85417
           Summary: Extra test failures with -fcf-protection -mcet
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot
          Reporter: at gmail dot com
                CC: ubizjak at gmail dot com
  Target Milestone: ---


RUNTESTFLAGS="--target_board='unix{-fcf-protection\ -mcet}'"

is used with "make check", there are extra test failures like:

FAIL: (test for excess errors)

[hjl@gnu-4 gcc]$ /export/build/gnu/gcc-test/build-x86_64-linux/gcc/xgcc
-fcf-protection -mcet   -fno-diagnostics-show-caret -fdiagnostics-color=never  
 -ansi -pedantic-errors  -lm  -o ./mvc1.exe
/export/gnu/import/git/sources/gcc/gcc/testsuite/ In
function \u2018foo.resolver\u2019:
error: \u2018-fcf-protection=full\u2019 requires Intel CET support. Use -mcet
or both of -mibt and -mshstk options to enable CET
[hjl@gnu-4 gcc]$ 

Since CET is applied to the whole program, we can't disable CET in
one function.

Reply via email to