mirror of https://github.com/xemu-project/xemu.git
configure: Fix errors in test for__sync_fetch_and_and
The old test code raises two compiler warnings which are errors since
commit 417c9d72d4
.
These errors could result in compilations with compiler flag
-march486 (so all nice features of newer processors got lost).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
caa50971f2
commit
7ace252a6a
|
@ -2799,7 +2799,7 @@ fi
|
||||||
# specification is necessary
|
# specification is necessary
|
||||||
if test "$vhost_net" = "yes" && test "$cpu" = "i386"; then
|
if test "$vhost_net" = "yes" && test "$cpu" = "i386"; then
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
int sfaa(unsigned *ptr)
|
static int sfaa(int *ptr)
|
||||||
{
|
{
|
||||||
return __sync_fetch_and_and(ptr, 0);
|
return __sync_fetch_and_and(ptr, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue