Hello,

I've applied the following patch as obvious to fix the -Wformat issue pointed
out by Thomas Schwinge.

        * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
        string.

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)

Reply via email to