+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
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;
}
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;
}