Message ID | 1368301619-32097-2-git-send-email-sw@weilnetz.de |
---|---|
State | Accepted |
Headers | show |
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 --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; }
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(+)