[PATCH][ARM][gas] Warn on deprecated ldm r<n>, {..., sp,...} and ldm r<n>, {...,lr,pc,...} forms
Kyrill Tkachov
kyrylo.tkachov@arm.com
Wed Jan 14 10:24:00 GMT 2015
Hi all,
ARMv7-A deprecates ldm instructions that use the SP register in their list
as well as ldm instructions that use both LR and PC. GAS should warn
about them.
This patch adds a warning for these forms.
Tests are added/updated.
Tested check-gas in arm-none-eabi and I've had it sitting in my tree
being tested
with gcc for a few months now.
What do people think?
Thanks,
Kyrill
[gas/]
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/tc-arm.c (encode_ldmstm): Add deprecation warning when
SP or both LR and PC are used in ldm register list.
[gas/testsuite]
2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gas/cfi/cfi-arm-1.s: Change usage of sp to ip in 'ldmea'.
* gas/arm/arm-ldm-bad.s: New file.
* gas/arm/arm-ldm-bad.d: Likewise.
* gas/arm/arm-ldm-bad.l: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-gas-ldm-warnings.patch
Type: text/x-patch
Size: 2387 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150114/d56acbae/attachment.bin>
More information about the Binutils
mailing list