Hi!

Another case of missing whitespace when string literals are split
across multiple lines, I believe we should emit a space here
for nicer formatting.

Ok for trunk?

2017-02-13  Jakub Jelinek  <ja...@redhat.com>

        * config/nvptx/mkoffload.c (process): Add space in between
        , and %d.

--- gcc/config/nvptx/mkoffload.c.jj     2017-01-01 12:45:43.000000000 +0100
+++ gcc/config/nvptx/mkoffload.c        2017-02-13 11:37:21.065021563 +0100
@@ -338,7 +338,7 @@ process (FILE *in, FILE *out)
   fprintf (out, "static __attribute__((constructor)) void init (void)\n"
           "{\n"
           "  GOMP_offload_register_ver (%#x, __OFFLOAD_TABLE__,"
-          "%d/*NVIDIA_PTX*/, &target_data);\n"
+          " %d/*NVIDIA_PTX*/, &target_data);\n"
           "};\n",
           GOMP_VERSION_PACK (GOMP_VERSION, GOMP_VERSION_NVIDIA_PTX),
           GOMP_DEVICE_NVIDIA_PTX);
@@ -346,7 +346,7 @@ process (FILE *in, FILE *out)
   fprintf (out, "static __attribute__((destructor)) void fini (void)\n"
           "{\n"
           "  GOMP_offload_unregister_ver (%#x, __OFFLOAD_TABLE__,"
-          "%d/*NVIDIA_PTX*/, &target_data);\n"
+          " %d/*NVIDIA_PTX*/, &target_data);\n"
           "};\n",
           GOMP_VERSION_PACK (GOMP_VERSION, GOMP_VERSION_NVIDIA_PTX),
           GOMP_DEVICE_NVIDIA_PTX);

        Jakub

Reply via email to