diff mbox

[for-1.5,1/2] w32: Fix configure test for -march=i486

Message ID 1368301619-32097-2-git-send-email-sw@weilnetz.de
State Accepted
Headers show

Commit Message

Stefan Weil May 11, 2013, 7:46 p.m. UTC
The latest version of MinGW needs a test for __sync_val_compare_and_swap
to fix a missing symbol linker error.

Reported-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 configure |    1 +
 1 file changed, 1 insertion(+)

Comments

Stefan Weil May 14, 2013, 6:20 p.m. UTC | #1
Am 11.05.2013 21:46, schrieb Stefan Weil:
> The latest version of MinGW needs a test for __sync_val_compare_and_swap
> to fix a missing symbol linker error.
>
> Reported-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  configure |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/configure b/configure
> index 9439f1c..3a75f66 100755
> --- a/configure
> +++ b/configure
> @@ -1341,6 +1341,7 @@ static int sfaa(int *ptr)
>  int main(void)
>  {
>    int val = 42;
> +  val = __sync_val_compare_and_swap(&val, 0, 1);
>    sfaa(&val);
>    return val;
>  }


Ping. The above patch 1 is still needed for latest QEMU.

Patch 2 is no longer needed.

Regards,
Stefan Weil
diff mbox

Patch

diff --git a/configure b/configure
index 9439f1c..3a75f66 100755
--- a/configure
+++ b/configure
@@ -1341,6 +1341,7 @@  static int sfaa(int *ptr)
 int main(void)
 {
   int val = 42;
+  val = __sync_val_compare_and_swap(&val, 0, 1);
   sfaa(&val);
   return val;
 }