[ARM] fix PR target/48637

Richard Earnshaw Richard.Earnshaw@buzzard.freeserve.co.uk
Tue Jun 28 08:38:00 GMT 2011


For a long time now the compiler has permitted printing a symbol with
the %c operator, but for some reason we've never permitted
symbol+offset.  This patch fixes this omission and also makes the
compiler slightly more friendly to users of ASM statements by not
generating an ICE when it can't handle an expression.  Tested on
arm-eabi and installed on trunk.

This is not a regression, so I don't propose to back-port it to older
compilers (though doing so would most-likely be trivial).

R.

2011-06-27  Richard Earnshaw  <rearnsha@arm.com>

        PR target/48637
        * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on
	invalid asm operands.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm.patch
Type: text/x-patch
Size: 601 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110628/c35afab3/attachment.bin>


More information about the Gcc-patches mailing list