diff gcc/common/config/nds32/nds32-common.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line diff
--- a/gcc/common/config/nds32/nds32-common.c	Thu Oct 25 07:37:49 2018 +0900
+++ b/gcc/common/config/nds32/nds32-common.c	Thu Feb 13 11:34:05 2020 +0900
@@ -1,5 +1,5 @@
 /* Common hooks of Andes NDS32 cpu for GNU compiler
-   Copyright (C) 2012-2018 Free Software Foundation, Inc.
+   Copyright (C) 2012-2020 Free Software Foundation, Inc.
    Contributed by Andes Technology Corporation.
 
    This file is part of GCC.
@@ -46,8 +46,7 @@
       /* Check the valid vector size: 4 or 16.  */
       if (value != 4 && value != 16)
 	{
-	  error_at (loc, "for the option -misr-vector-size=X, the valid X "
-			 "must be: 4 or 16");
+	  error_at (loc, "%<-misr-vector-size=%d%> argument must be 4 or 16", value);
 	  return false;
 	}
 
@@ -57,8 +56,8 @@
       /* Check the valid security level: 0 1 2 3.  */
       if (value < 0 || value > 3)
 	{
-	  error_at (loc, "for the option -misr-secure=X, the valid X "
-			 "must be: 0, 1, 2, or 3");
+	  error_at (loc, "%<-misr-secure=%d%> argument not in between 0 and 3",
+		    value);
 	  return false;
 	}
       return true;
@@ -67,7 +66,7 @@
       /* Check valid value: 4 8 16 32 64 128 256 512.  */
       if (exact_log2 (value) < 2 || exact_log2 (value) > 9)
 	{
-	  error_at (loc, "for the option -mcache-block-size=X, the valid X "
+	  error_at (loc, "for the option %<-mcache-block-size=X%>, the valid X "
 			 "must be: 4, 8, 16, 32, 64, 128, 256, or 512");
 	  return false;
 	}