[PATCH] Make ARM GAS accept valid STR instruction
Daniel Jacobowitz
dan@codesourcery.com
Fri Aug 20 21:07:00 GMT 2010
On Wed, Aug 18, 2010 at 04:28:07PM +0800, Jie Zhang wrote:
> `str r0,[pc,#4]' is a valid instruction although the use of PC is
> deprecated. But currently GAS rejects this instruction. This patch
> should fix it. Tested using GAS testsuite for arm-none-eabi target.
> Is it OK?
Where (on what architectures) is the use of PC deprecated? It's
documented as fine in the ARM v5 reference; I do not think we should
warn unconditionally, but then, some other code in gas does. At least
check warn_on_deprecated.
swp{b} warns only of armv6 or later, that might be the right model here.
--
Daniel Jacobowitz
CodeSourcery
More information about the Binutils
mailing list