kernel-ark/include
Stelian Pop 0803c30c23 [ARM] 4264/1: ldrex/strex syntax errors with recent compilers
Trying to build some code using atomic_clear_mask() on a ARM v6
processor with a recent compiler (tried with gcc version 4.1.1
(CodeSourcery ARM Sourcery G++ 2006q3-26), but
all gcc > 4.1 might be affected) results in the following:

/tmp/ccWKLJV8.s: Assembler messages:
/tmp/ccWKLJV8.s:581: Error: instruction does not accept this addressing
mode -- `ldrex r0,r3'
/tmp/ccWKLJV8.s:583: Error: instruction does not accept this addressing
mode -- `strex r1,r0,r3'

Older gcc (like gcc version 4.0.0 (DENX ELDK 4.1 4.0.0)) have no problem
with this.

The patch below fixes the compile error. I also verified that gcc-4.0.0 generates identical code using both forms.

Signed-off-by: Stelian Pop <stelian@popies.net>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2007-03-15 20:39:16 +00:00
..
acpi
asm-alpha
asm-arm [ARM] 4264/1: ldrex/strex syntax errors with recent compilers 2007-03-15 20:39:16 +00:00
asm-arm26
asm-avr32 avr32: dma-mapping.h 2007-03-07 10:50:30 +01:00
asm-cris
asm-frv
asm-generic Revert "[PATCH] LOG2: Alter get_order() so that it can make use of ilog2() on a constant" 2007-03-06 19:38:01 -08:00
asm-h8300
asm-i386 [PATCH] Fix vmi time header bug 2007-03-12 16:36:16 -07:00
asm-ia64 [IA64] Remove sparse warning from unwind code 2007-03-08 10:28:48 -08:00
asm-m32r
asm-m68k
asm-m68knommu [PATCH] m68knommu: GPIO line defines for the ColdFire 5282 2007-03-06 18:08:38 -08:00
asm-mips [MIPS] Sibyte: Fix ZBbus profiler 2007-03-09 20:27:31 +00:00
asm-parisc
asm-powerpc [POWERPC] sys_move_pages should be callable from an SPU 2007-03-12 15:48:35 +11:00
asm-ppc
asm-s390
asm-sh
asm-sh64
asm-sparc [SPARC]: We do not need OLD_GETRLIMIT. 2007-03-09 23:10:23 -08:00
asm-sparc64 [SPARC]: We do not need OLD_GETRLIMIT. 2007-03-09 23:10:23 -08:00
asm-um
asm-v850
asm-x86_64 Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 2007-03-06 18:05:10 -08:00
asm-xtensa
crypto
keys
linux [PATCH] pci: Repair pci_save/restore_state so we can restore one save many times. 2007-03-12 16:31:50 -07:00
math-emu
media
mtd
net [IPSEC]: xfrm_policy delete security check misplaced 2007-03-07 16:08:09 -08:00
pcmcia
rdma
rxrpc
scsi
sound
video
Kbuild