]> git.ipfire.org Git - thirdparty/gcc.git/commit
gcc: xtensa: fix fprintf format specifiers
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 30 May 2017 23:42:48 +0000 (23:42 +0000)
committerMax Filippov <jcmvbkbc@gcc.gnu.org>
Tue, 30 May 2017 23:42:48 +0000 (23:42 +0000)
commit1c8937f155911fb82c55e110ba37e75faeccd2de
treeab243cbd80af1d9464dfc0bc9f3e8d91a7cbb0d4
parentfd5d7a625565759b4ed9468378b69a195d26132a
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-30  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
Backport from mainline
2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>

* 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: r248709
gcc/ChangeLog
gcc/config/xtensa/xtensa.c