]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/xtensa/xtensa.c
gcc: xtensa: fix fprintf format specifiers
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 29 May 2017 23:02:36 +0000 (23:02 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Mon, 29 May 2017 23:02:36 +0000 (23:02 +0000)
commit3904010d5b65338b03dd5203ca2c2a26bb6aeb46
treee5c8121f813592baedd7678849e0d042632f705f
parent4dbe373cfc4268284de8bb4e78e61294c381c518
gcc: xtensa: fix fprintf format specifiers

HOST_WIDE_INT may not be long as assumed in print_operand and
xtensa_emit_call. Use HOST_WIDE_INT_PRINT_DEC/HOST_WIDE_INT_PRINT_HEX
format strings instead of %ld/0x%lx. This fixes incorrect assembly code
generation by the compiler running on armhf host.

2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
* config/xtensa/xtensa.c (xtensa_emit_call): Use
HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
(print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
format string.

From-SVN: r248586
gcc/ChangeLog
gcc/config/xtensa/xtensa.c