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'.
This commit is contained in:
parent
4a0c4eaea3
commit
c8d581bdf7
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue