libgomp: Compile tests with -march=i486 only if needed
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 6 Jun 2021 12:36:23 +0000 (05:36 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 9 Jun 2021 17:05:40 +0000 (10:05 -0700)
commitc8d581bdf731714977b1592e74d05e000535e338
treea729df00ab3d3e00866c8636ed4cada57cdc904e
parent4a0c4eaea320a418400afc4d63359ed6c4af5548
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'.
libgomp/testsuite/lib/libgomp.exp