Fix GNU coding style for G_.
authorMartin Liska <mliska@suse.cz>
Thu, 17 May 2018 10:44:01 +0000 (12:44 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 17 May 2018 10:44:01 +0000 (10:44 +0000)
2018-05-17  Martin Liska  <mliska@suse.cz>

* gimple-ssa-sprintf.c (format_directive): Do not use
space in between 'G_' and '('.
2018-05-17  Martin Liska  <mliska@suse.cz>

* c-warn.c (overflow_warning): Do not use
space in between 'G_' and '('.
2018-05-17  Martin Liska  <mliska@suse.cz>

* gcc.dg/plugin/ggcplug.c (plugin_init): Do not use
space in between 'G_' and '('.

From-SVN: r260314

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/plugin/ggcplug.c

index aaa4093fc88bde9b6ab58fd46e3c0f45f3db85de..657faa80b41f35383efc8f7fec786daa774399ff 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-17  Martin Liska  <mliska@suse.cz>
+
+       * gimple-ssa-sprintf.c (format_directive): Do not use
+       space in between 'G_' and '('.
+
 2018-05-17  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/85323
index 27bdd2ddb1d0ac36a6186d066b845f7bf53f63dd..0930511da88ef89737e26c3c608d9eed09cd4445 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-17  Martin Liska  <mliska@suse.cz>
+
+       * c-warn.c (overflow_warning): Do not use
+       space in between 'G_' and '('.
+
 2018-05-09  Jason Merrill  <jason@redhat.com>
 
        * c-common.c (valid_array_size_p): Add complain parameter.
index d0d9c7894a80e02adc326d4bd78b37933263e44b..2614eb58f1467a350d694e2c4f487962c9829f79 100644 (file)
@@ -98,10 +98,10 @@ overflow_warning (location_t loc, tree value, tree expr)
 
     case REAL_CST:
       warnfmt = (expr
-                ? G_ ("floating point overflow in expression %qE "
-                      "of type %qT results in %qE")
-                : G_ ("floating point overflow in expression of type %qT "
-                      "results in %qE"));
+                ? G_("floating point overflow in expression %qE "
+                     "of type %qT results in %qE")
+                : G_("floating point overflow in expression of type %qT "
+                     "results in %qE"));
       break;
 
     case FIXED_CST:
index 4ec58605ce835796aaa98256ba9f3d950d0acacc..ec5e7046f6e1a3b7684de37dfa38e65ca7f6bb8e 100644 (file)
@@ -2933,12 +2933,12 @@ format_directive (const sprintf_dom_walker::call_info &info,
       else
        warned = fmtwarn (dirloc, argloc, NULL, info.warnopt (),
                          fmtres.range.min > target_int_max ()
-                         ? G_ ("%<%.*s%> directive output between %wu and "
-                               "%wu bytes causes result to exceed "
-                               "%<INT_MAX%>")
-                         : G_ ("%<%.*s%> directive output between %wu and "
-                               "%wu bytes may cause result to exceed "
-                               "%<INT_MAX%>"), dirlen,
+                         ? G_("%<%.*s%> directive output between %wu and "
+                              "%wu bytes causes result to exceed "
+                              "%<INT_MAX%>")
+                         : G_("%<%.*s%> directive output between %wu and "
+                              "%wu bytes may cause result to exceed "
+                              "%<INT_MAX%>"), dirlen,
                          target_to_host (hostdir, sizeof hostdir, dir.beg),
                          fmtres.range.min, fmtres.range.max);
     }
index 1e5eb1b65351ec571b81b49b45d0adda06e0ee5c..f02fa93ad3f84df2ddf44075c83d07551335e06a 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-17  Martin Liska  <mliska@suse.cz>
+
+       * gcc.dg/plugin/ggcplug.c (plugin_init): Do not use
+       space in between 'G_' and '('.
+
 2018-05-17  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/85323
index c4bc334868b282e7b21dad96424001a642e867ca..c186d119371db98322d6f5934e17cbf064daf9d8 100644 (file)
@@ -64,8 +64,8 @@ plugin_init (struct plugin_name_args *plugin_info,
       if (!strcmp (argv[i].key, "count-ggc-start"))
        {
          if (argv[i].value)
-           warning (0, G_ ("option '-fplugin-arg-%s-count-ggc-start=%s'"
-                           " ignored (superfluous '=%s')"),
+           warning (0, G_("option '-fplugin-arg-%s-count-ggc-start=%s'"
+                          " ignored (superfluous '=%s')"),
                     plugin_name, argv[i].value, argv[i].value);
          else
            register_callback ("ggcplug",
@@ -76,8 +76,8 @@ plugin_init (struct plugin_name_args *plugin_info,
       else if (!strcmp (argv[i].key, "count-ggc-end"))
        {
          if (argv[i].value)
-           warning (0, G_ ("option '-fplugin-arg-%s-count-ggc-end=%s'"
-                           " ignored (superfluous '=%s')"),
+           warning (0, G_("option '-fplugin-arg-%s-count-ggc-end=%s'"
+                          " ignored (superfluous '=%s')"),
                     plugin_name, argv[i].value, argv[i].value);
          else
            register_callback ("ggcplug",
@@ -88,8 +88,8 @@ plugin_init (struct plugin_name_args *plugin_info,
       else if (!strcmp (argv[i].key, "count-ggc-mark"))
        {
          if (argv[i].value)
-           warning (0, G_ ("option '-fplugin-arg-%s-count-ggc-mark=%s'"
-                           " ignored (superfluous '=%s')"),
+           warning (0, G_("option '-fplugin-arg-%s-count-ggc-mark=%s'"
+                          " ignored (superfluous '=%s')"),
                     plugin_name, argv[i].value, argv[i].value);
          else
            register_callback ("ggcplug",
@@ -100,8 +100,8 @@ plugin_init (struct plugin_name_args *plugin_info,
       else if (!strcmp (argv[i].key, "test-extra-root"))
        {
          if (argv[i].value)
-           warning (0, G_ ("option '-fplugin-arg-%s-test-extra-root=%s'"
-                           " ignored (superfluous '=%s')"),
+           warning (0, G_("option '-fplugin-arg-%s-test-extra-root=%s'"
+                          " ignored (superfluous '=%s')"),
                     plugin_name, argv[i].value, argv[i].value);
          else
            register_callback ("ggcplug",