[nios2,committed] Fix PR80024

Message ID d3c69911-b551-219e-6d6b-9038750311eb@codesourcery.com
State New
Headers show
  • [nios2,committed] Fix PR80024
Related show

Commit Message

Sandra Loosemore Oct. 27, 2018, 9:38 p.m.
I've checked in this patch to fix a diagnostic message in the nios2 
backend.  This is in the target attribute parsing code; it now uses the 
same wording as the similar diagnostic for an incorrect value given to 
the corresponding command-line argument.


2018-10-27  Sandra Loosemore  <sandra@codesourcery.com>

         PR target/80024

         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Fix
         error message.


Index: gcc/config/nios2/nios2.c
--- gcc/config/nios2/nios2.c	(revision 265560)
+++ gcc/config/nios2/nios2.c	(working copy)
@@ -4264,8 +4264,8 @@  nios2_valid_target_attribute_rec (tree a
 			  if (!ISDIGIT (*t))
-			      error ("`custom-%s=' argument requires "
-				     "numeric digits", N2FPU_NAME (code));
+			      error ("%<custom-%s=%> argument should be "
+				     "a non-negative integer", N2FPU_NAME (code));
 			      return false;