From: Richard Biener Date: Wed, 8 Jun 2016 10:26:54 +0000 (+0000) Subject: c-common.c (parse_optimize_options): Improve diagnostic messages. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a80a70518149248572e64eacf54aeac292614533;p=gcc.git c-common.c (parse_optimize_options): Improve diagnostic messages. 2016-06-08 Richard Biener * c-common.c (parse_optimize_options): Improve diagnostic messages. From-SVN: r237206 --- 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 + + * c-common.c (parse_optimize_options): Improve diagnostic messages. + 2016-06-07 Richard Biener 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 %", p); else warning (OPT_Wpragmas, - "bad option %s to pragma attribute", p); + "bad option %qs to pragma %", 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 %", decoded_options[i].orig_option_with_args_text); else warning (OPT_Wpragmas, - "bad option %s to pragma attribute", + "bad option %qs to pragma %", decoded_options[i].orig_option_with_args_text); continue; }