This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH?] Separate pthread patches, #2 take 2.
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- Cc: cygwin-patches at cygwin dot com
- Date: Thu, 04 Jun 2009 02:52:56 +0100
- Subject: Re: [PATCH?] Separate pthread patches, #2 take 2.
- References: <4A270656.8090704@gmail.com> <4A2716AF.9070101@gmail.com>
Dave Korn wrote:
> Dave Korn wrote:
>> The attached patch implements ilockexch and ilockcmpexch, using the inline
>> asm definition from __arch_compare_and_exchange_val_32_acq in
>> glibc-2.10.1/sysdeps/i386/i486/bits/atomic.h, trivially expanded inline rather
>> than in its original preprocessor macro form.
>>
>> It generates incorrect code.
>
> This much looks like it's probably a compiler bug.
Let's see whether anyone else agrees:
http://gcc.gnu.org/ml/gcc/2009-06/msg00053.html
cheers,
DaveK