From: Alexander Monakov Date: Fri, 31 Mar 2017 16:22:00 +0000 (+0300) Subject: nvptx: correct format string X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77734296b4b2634ea4b0222cc5d829d0eb99825f;p=gcc.git nvptx: correct format string * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format string. From-SVN: r246620 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7074e7eee2f..9b257ecb21a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-03-31 Alexander Monakov + + * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format + string. + 2017-03-31 Pat Haugen PR target/80107 diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 83f46104ca3..4c35c16ee95 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -1353,7 +1353,8 @@ nvptx_output_softstack_switch (FILE *file, bool entering, output_reg (file, REGNO (size), VOIDmode); fputs (";\n", file); if (!CONST_INT_P (size) || UINTVAL (align) > GET_MODE_SIZE (DImode)) - fprintf (file, "\t\tand.u%d %%r%d, %%r%d, -%d;\n", + fprintf (file, + "\t\tand.u%d %%r%d, %%r%d, -" HOST_WIDE_INT_PRINT_DEC ";\n", bits, regno, regno, UINTVAL (align)); } if (cfun->machine->has_softstack)