This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gcc: xtensa: fix fprintf format specifiers
- From: "augustine dot sterling at gmail dot com" <augustine dot sterling at gmail dot com>
- To: Max Filippov <jcmvbkbc at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "linux-xtensa at linux-xtensa dot org" <linux-xtensa at linux-xtensa dot org>
- Date: Mon, 29 May 2017 09:08:48 -0700
- Subject: Re: [PATCH] gcc: xtensa: fix fprintf format specifiers
- Authentication-results: sourceware.org; auth=none
- References: <1496056284-9916-1-git-send-email-jcmvbkbc@gmail.com>
On Mon, May 29, 2017 at 4:11 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> 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.
This is ok.