This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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] Make ARM GAS accept valid STR instruction


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


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