public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1343] libgomp: Compile tests with -march=i486 only if needed
@ 2021-06-09 17:06 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2021-06-09 17:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c8d581bdf731714977b1592e74d05e000535e338
commit r12-1343-gc8d581bdf731714977b1592e74d05e000535e338
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sun Jun 6 05:36:23 2021 -0700
libgomp: Compile tests with -march=i486 only if needed
Don't add -march=i486 if atomic compare-and-swap is supported on 'int'.
This fixes libgomp tests with "-march=x86-64 -m32 -fcf-protection".
* testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
if atomic compare-and-swap is supported on 'int'.
Diff:
---
libgomp/testsuite/lib/libgomp.exp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp
index 45c78d8510e..a2050151e84 100644
--- a/libgomp/testsuite/lib/libgomp.exp
+++ b/libgomp/testsuite/lib/libgomp.exp
@@ -210,7 +210,8 @@ proc libgomp_init { args } {
# We use atomic operations in the testcases to validate results.
if { ([istarget i?86-*-*] || [istarget x86_64-*-*])
- && [check_effective_target_ia32] } {
+ && [check_effective_target_ia32]
+ && ![check_effective_target_cas_char] } {
lappend ALWAYS_CFLAGS "additional_flags=-march=i486"
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-09 17:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 17:06 [gcc r12-1343] libgomp: Compile tests with -march=i486 only if needed H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).