c-common.c (parse_optimize_options): Improve diagnostic messages.
2016-06-08 Richard Biener <rguenther@suse.de> * c-common.c (parse_optimize_options): Improve diagnostic messages. From-SVN: r237206
This commit is contained in:
parent
3629030e36
commit
a80a705181
2 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue