[Bug testsuite/85417] New: Extra test failures with -fcf-protection -mcet
hjl.tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 16 12:37:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85417
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 gnu.org
Reporter: hjl.tools at gmail dot com
CC: ubizjak at gmail dot com
Target Milestone: ---
When
RUNTESTFLAGS="--target_board='unix{-fcf-protection\ -mcet}'"
is used with "make check", there are extra test failures like:
FAIL: gcc.target/i386/mvc1.c (test for excess errors)
[hjl@gnu-4 gcc]$ /export/build/gnu/gcc-test/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc-test/build-x86_64-linux/gcc/
/export/gnu/import/git/sources/gcc/gcc/testsuite/gcc.target/i386/mvc1.c
-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/gcc.target/i386/mvc1.c: In
function \u2018foo.resolver\u2019:
/export/gnu/import/git/sources/gcc/gcc/testsuite/gcc.target/i386/mvc1.c:27:1:
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.
More information about the Gcc-bugs
mailing list