Patch installed for warnings in frv.c

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Fri May 16 18:50:00 GMT 2003


Tested by building cc1 with target=frv-unknown-elf.
Installed as "obvious".


2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* frv.c (frv_print_operand_memory_reference): Fix format specifier
	warning.
	(frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.

diff -rup orig/egcc-CVS20030508/gcc/config/frv/frv.c egcc-CVS20030508/gcc/config/frv/frv.c
--- orig/egcc-CVS20030508/gcc/config/frv/frv.c	2003-04-17 21:09:40.000000000 -0400
+++ egcc-CVS20030508/gcc/config/frv/frv.c	2003-05-09 19:53:01.559664000 -0400
@@ -2564,7 +2564,8 @@ frv_print_operand_memory_reference (stre
 	    {
 	      fputs ("#gprel12(", stream);
 	      assemble_name (stream, XSTR (XEXP (XEXP (x1, 0), 0), 0));
-	      fprintf (stream, "+%d)", INTVAL (XEXP (XEXP (x1, 0), 1)));
+	      fprintf (stream, "+"HOST_WIDE_INT_PRINT_DEC")",
+		       INTVAL (XEXP (XEXP (x1, 0), 1)));
 	    }
 	  else
 	    fatal_insn ("Bad insn to frv_print_operand_memory_reference:", x);
@@ -9742,7 +9743,7 @@ frv_in_small_data_p (decl)
 static bool
 frv_rtx_costs (x, code, outer_code, total)
      rtx x;
-     int code, outer_code;
+     int code, outer_code ATTRIBUTE_UNUSED;
      int *total;
 {
   switch (code)



More information about the Gcc-patches mailing list