This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Make ARM GAS accept valid STR instruction
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Jie Zhang <jie at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 20 Aug 2010 17:03:05 -0400
- Subject: Re: [PATCH] Make ARM GAS accept valid STR instruction
- References: <4C6B9997.4000102@codesourcery.com>
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