c-common.c (parse_optimize_options): Improve diagnostic messages.
authorRichard Biener <rguenther@suse.de>
Wed, 8 Jun 2016 10:26:54 +0000 (10:26 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 8 Jun 2016 10:26:54 +0000 (10:26 +0000)
2016-06-08  Richard Biener  <rguenther@suse.de>

* c-common.c (parse_optimize_options): Improve diagnostic messages.

From-SVN: r237206

gcc/c-family/ChangeLog
gcc/c-family/c-common.c

index 6d8307d..1cd8aa7 100644 (file)
@@ -1,3 +1,7 @@
+2016-06-08  Richard Biener  <rguenther@suse.de>
+
+       * c-common.c (parse_optimize_options): Improve diagnostic messages.
+
 2016-06-07  Richard Biener  <rguenther@suse.de>
 
        PR c/61564
index 2e29dfc..4e75e51 100644 (file)
@@ -9542,10 +9542,10 @@ parse_optimize_options (tree args, bool attr_p)
                  ret = false;
                  if (attr_p)
                    warning (OPT_Wattributes,
-                            "bad option %s to optimize attribute", p);
+                            "bad option %qs to attribute %<optimize%>", p);
                  else
                    warning (OPT_Wpragmas,
-                            "bad option %s to pragma attribute", p);
+                            "bad option %qs to pragma %<optimize%>", p);
                  continue;
                }
 
@@ -9589,11 +9589,11 @@ parse_optimize_options (tree args, bool attr_p)
          ret = false;
          if (attr_p)
            warning (OPT_Wattributes,
-                    "bad option %s to optimize attribute",
+                    "bad option %qs to attribute %<optimize%>",
                     decoded_options[i].orig_option_with_args_text);
          else
            warning (OPT_Wpragmas,
-                    "bad option %s to pragma attribute",
+                    "bad option %qs to pragma %<optimize%>",
                     decoded_options[i].orig_option_with_args_text);
          continue;
        }