From 6e0686e124ced6c306e2f3814b3557c892008071 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Sat, 27 Oct 2018 17:34:43 -0400 Subject: [PATCH] re PR target/80024 (nios2: unclear wording "numeric digits" in diagnostic) 2018-10-27 Sandra Loosemore PR target/80024 gcc/ * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Fix error message. From-SVN: r265561 --- gcc/ChangeLog | 6 ++++++ gcc/config/nios2/nios2.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6d4bd6b3f96..cc940c83feb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-10-27 Sandra Loosemore + + PR target/80024 + * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Fix + error message. + 2018-10-26 Tulio Magno Quites Machado Filho * doc/extend.texi (PowerPC builtins): Fix __builtin_unpack_ibm128 diff --git a/gcc/config/nios2/nios2.c b/gcc/config/nios2/nios2.c index c57d6cdcb80..78d58582929 100644 --- a/gcc/config/nios2/nios2.c +++ b/gcc/config/nios2/nios2.c @@ -4264,8 +4264,8 @@ nios2_valid_target_attribute_rec (tree args) continue; if (!ISDIGIT (*t)) { - error ("`custom-%s=' argument requires " - "numeric digits", N2FPU_NAME (code)); + error ("% argument should be " + "a non-negative integer", N2FPU_NAME (code)); return false; } } -- 2.30.2