aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2017-03-31 19:22:00 +0300
committerAlexander Monakov <amonakov@gcc.gnu.org>2017-03-31 19:22:00 +0300
commit77734296b4b2634ea4b0222cc5d829d0eb99825f (patch)
tree655832480dc5df73dacc61068dcd2f84d3c282cb /gcc/config
parent99e6cfd6c194562c4f98529a5638cb6490db1715 (diff)
downloadgcc-77734296b4b2634ea4b0222cc5d829d0eb99825f.zip
gcc-77734296b4b2634ea4b0222cc5d829d0eb99825f.tar.gz
gcc-77734296b4b2634ea4b0222cc5d829d0eb99825f.tar.bz2
nvptx: correct format string
* config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format string. From-SVN: r246620
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/nvptx/nvptx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 83f4610..4c35c16 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)