From 77734296b4b2634ea4b0222cc5d829d0eb99825f Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Fri, 31 Mar 2017 19:22:00 +0300 Subject: [PATCH] nvptx: correct format string * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format string. From-SVN: r246620 --- gcc/ChangeLog | 5 +++++ gcc/config/nvptx/nvptx.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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) -- 2.30.2