diff options
author | Richard Biener <rguenther@suse.de> | 2016-06-08 10:26:54 +0000 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2016-06-08 10:26:54 +0000 |
commit | 1592bfdf72f7fbabe6d90476408af97379c4edbd (patch) | |
tree | 1f591720af0eb71cf582c34cb2596ee10058afde | |
parent | 9a99666f574ccf0cb93d324e989653378631703c (diff) |
2016-06-08 Richard Biener <rguenther@suse.de>
* c-common.c (parse_optimize_options): Improve diagnostic messages.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@237206 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 6d8307d9f2a..1cd8aa7ad32 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -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 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 2e29dfc6a17..4e75e51c013 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -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; } |