Hi Michael,

On 21 March 2013 03:00, Richard Henderson <r...@redhat.com> wrote:
> On 03/18/2013 05:48 AM, David Holsgrove wrote:
>>  * gcc/config/microblaze/sync.md: New file.
>>  * gcc/config/microblaze/microblaze.md: Add UNSPEC_SYNC_CAS,
>>    UNSPEC_SYNC_XCHG and include sync.md.
>>  * gcc/config/microblaze/microblaze.c: Add print_operand 'y'.
>>  * gcc/config/microblaze/constraints.md: Add memory_contraint
>>    'Q' which is a single register.
>
> Do not add new __sync implementations.  Use the __atomic builtins.
>
>
> r~

Please find attached reworked patch using __atomic builtin.

Changelog entry would be;

2013-07-15  David Holsgrove <david.holsgr...@xilinx.com>

 * gcc/config/microblaze/sync.md: New file.
 * gcc/config/microblaze/microblaze.md: Include sync.md
 * gcc/config/microblaze/microblaze.c: Add print_operand 'y'.
 * gcc/config/microblaze/constraints.md: Add memory_contraint
   'Q' which is a single register.

thanks,
David

Attachment: 0004-Patch-microblaze-Add-4-byte-implementation-for-atomi.patch
Description: Binary data

Reply via email to