Re: [PATCH 2/5] arm: Emit swp for pre-armv6.

2011-12-01 Thread Richard Earnshaw
Sorry, no. It's essential we don't emit SWP instructions directly into code on any platform where that code may possibly be run on a later core that has LDREX/STREX. If we do that we'll end up with a mess that can't be resolved. In the absence of known OS helper functions the only solution to

Re: [PATCH 2/5] arm: Emit swp for pre-armv6.

2011-12-01 Thread Richard Henderson
On 12/01/2011 02:59 AM, Richard Earnshaw wrote: It's essential we don't emit SWP instructions directly into code on any platform where that code may possibly be run on a later core that has LDREX/STREX. If we do that we'll end up with a mess that can't be resolved. Ok. It's easy enough to

Re: [PATCH 2/5] arm: Emit swp for pre-armv6.

2011-12-01 Thread Andrew MacLeod
On 12/01/2011 10:49 AM, Richard Henderson wrote: On 12/01/2011 02:59 AM, Richard Earnshaw wrote: It's essential we don't emit SWP instructions directly into code on any platform where that code may possibly be run on a later core that has LDREX/STREX. If we do that we'll end up with a mess

[PATCH 2/5] arm: Emit swp for pre-armv6.

2011-11-30 Thread Richard Henderson
--- gcc/config/arm/arm.h |6 gcc/config/arm/sync.md | 63 +++- 2 files changed, 68 insertions(+), 1 deletions(-) diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index 31f4856..33e5b8e 100644 --- a/gcc/config/arm/arm.h +++