From a80a70518149248572e64eacf54aeac292614533 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 8 Jun 2016 10:26:54 +0000 Subject: [PATCH] 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 --- gcc/c-family/ChangeLog | 4 ++++ 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 + + * 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; } -- 2.30.2