gcc/libstdc++-v3/testsuite/29_atomics
H.J. Lu 2c356f221b libstdc++-v3: Add -fcf-protection=none to -march=i486
-fcf-protection is automatically enabled in libstdc++ on Linux/x86.
Starting from

commit 77d372abec
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Thu Jan 14 05:56:46 2021 -0800

    x86: Error on -fcf-protection with incompatible target

GCC issues an error on -fcf-protection with incompatible target:

... -fcf-protection ... libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc  -m32   -O2 -g0 -fno-exceptions -fno-asynchronous-unwind-tables -march=i486 ...
cc1plus: error: '-fcf-protection' is not compatible with this target
FAIL: 29_atomics/atomic_flag/test_and_set/explicit-hle.cc (test for excess errors)

Add -fcf-protection=none to -march=i486 to compile explicit-hle.cc.

	* testsuite/29_atomics/atomic_flag/test_and_set/explicit-hle.cc:
	Add -fcf-protection=none to -march=i486.
2021-01-15 17:37:20 -08:00
..
atomic Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_flag libstdc++-v3: Add -fcf-protection=none to -march=i486 2021-01-15 17:37:20 -08:00
atomic_float Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_integral Update copyright years. 2021-01-04 10:26:59 +01:00
atomic_ref Update copyright years. 2021-01-04 10:26:59 +01:00
headers/atomic Update copyright years. 2021-01-04 10:26:59 +01:00