[PATCH] ARM fixed-point support [2/6]: assembler format for fixed-point constants

Julian Brown julian@codesourcery.com
Fri May 13 14:46:00 GMT 2011


This patch changes the format used to print fixed-point constants from
hex to decimal. For instance a negative "short fract" fixed-point
constant may be represented as a signed HOST_WIDE_INT from -1 to -128,
which would currently be printed as e.g. 0xfff....ffxx, resulting in a
"bignum truncated to fit" warning from the assembler. This trouble is
avoided if we just print using integers instead, similarly to the way
signed character-constants are emitted elsewhere in the compiler.

Tested along with the rest of the patch series. OK to apply?

Julian

ChangeLog

    * final.c (output_addr_const): Print fixed-point constants as
    decimal not hex (avoiding an assembler overflow warning for
    negative byte constants).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixed-point-constant-format-2.diff
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110513/d6dafd10/attachment.bin>


More information about the Gcc-patches mailing list