Re: [RX] Add support for atomic operations

2016-05-31 Thread Oleg Endo
On Tue, 2016-05-31 at 14:17 +0100, Nick Clifton wrote: > > Sorry, but my original patch was buggy. There are two problems: > > Thanks for your diligence in checking the patch. Just eating my own dogfood here ... :) > Approved - please apply. Committed as r236926. Cheers, Oleg

Re: [RX] Add support for atomic operations

2016-05-31 Thread Nick Clifton
Hi Oleg, > Sorry, but my original patch was buggy. There are two problems: Thanks for your diligence in checking the patch. > The attached patch fixes those issues. > OK for trunk? > > Cheers, > Oleg > > gcc/ChangeLog: > * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator. >

Re: [RX] Add support for atomic operations

2016-05-28 Thread Oleg Endo
On Mon, 2016-05-09 at 15:18 +0100, Nick Clifton wrote: > > gcc/ChangeLog: > > * config/rx/rx-protos.h (is_interrupt_func, > > is_fast_interrupt_func): > > Forward declare. > > (rx_atomic_sequence): New class. > > * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW > >

Re: [RX] Add support for atomic operations

2016-05-09 Thread Nick Clifton
Hi Oleg, > gcc/ChangeLog: > * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func): > Forward declare. > (rx_atomic_sequence): New class. > * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits. > (is_interrupt_func,

[RX] Add support for atomic operations

2016-05-08 Thread Oleg Endo
Hi, The attached patch adds some rudimentary support for atomic operations. On the original RX there is one truly atomic insn "xchg". All other operations have to implement atomicity in some other way. One straight forward option which is already being done on SH is to disable interrupts for