From 217d0904fab9c653eeefe27d94cb73f5516c4d83 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Thu, 11 Dec 2014 15:09:01 +0000 Subject: [PATCH] [AArch64] Fix usage of +no in error message for aarch64_parse_extension * config/aarch64/aarch64.c (aarch64_parse_extension): Update error message to say +no only when removing extension. From-SVN: r218626 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/aarch64.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 66c9f1c9eee..dd509662d83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-11 Kyrylo Tkachov kyrylo.tkachov@arm.com + + * config/aarch64/aarch64.c (aarch64_parse_extension): Update error + message to say +no only when removing extension. + 2014-12-11 Andrew MacLeod * config/tilepro/gen-mul-tables.cc: Add insn-codes.h to include list diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index f2d390bdd00..831ec085368 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -6532,7 +6532,8 @@ aarch64_parse_extension (char *str) if (len == 0) { - error ("missing feature modifier after %qs", "+no"); + error ("missing feature modifier after %qs", adding_ext ? "+" + : "+no"); return; } -- 2.30.2