This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, microblaze]: Add atomic builtin implementation


On 07/14/13 21:43, David Holsgrove wrote:
Hi Michael,

On 21 March 2013 03:00, Richard Henderson <rth@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.holsgrove@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

Committed revision 201185.
ChangeLog corrected: revision 201200

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]