This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix warning in genrecog.c

This patch fixes the following warning on Linux/AMD64:
/cvs/gcc/gcc/genrecog.c:303: warning: field precision should have type 'int', but argument 3 has type 'size_t'

Bootstrapped/tested on x86_64-linux-gnu.  Ok to commit?


2004-12-27  Andreas Jaeger  <>

	* genrecog.c (compute_predicate_codes): Avoid warning.

Index: gcc/genrecog.c
--- gcc/genrecog.c	23 Dec 2004 20:21:08 -0000	1.151
+++ gcc/genrecog.c	27 Dec 2004 11:23:56 -0000
@@ -300,7 +300,8 @@ compute_predicate_codes (rtx exp, char c
 	    if (!found_it)
-		message_with_line (pattern_lineno, "match_code \"%.*s\" matches nothing", n, code);
+		message_with_line (pattern_lineno, "match_code \"%.*s\" matches nothing",
+				   (int) n, code);
 		error_count ++;
 		for (i = 0; i < NUM_RTX_CODE; i++)
 		  if (!strncasecmp (code, GET_RTX_NAME (i), n)

 Andreas Jaeger,,
  SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]