diff options
author | Richard Biener <rguenther@suse.de> | 2016-06-08 10:26:54 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-06-08 10:26:54 +0000 |
commit | a80a70518149248572e64eacf54aeac292614533 (patch) | |
tree | 1f591720af0eb71cf582c34cb2596ee10058afde /gcc | |
parent | 3629030e364980235fcfa66b5ac6b5995c469788 (diff) | |
download | gcc-a80a70518149248572e64eacf54aeac292614533.zip gcc-a80a70518149248572e64eacf54aeac292614533.tar.gz gcc-a80a70518149248572e64eacf54aeac292614533.tar.bz2 |
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
Diffstat (limited to 'gcc')
-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 6d8307d..1cd8aa7 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 2e29dfc..4e75e51 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; } |