summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-16 18:29:53 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-16 18:29:53 +0000
commit58b275b243e567cc5531165097524e8cc43a1629 (patch)
tree960cf3d6616576bc717240ce06feaee4a2e45eb2
parent6789f4d87084ebd5861de4203d0d10e559476d28 (diff)
downloadppe42-gcc-58b275b243e567cc5531165097524e8cc43a1629.tar.gz
ppe42-gcc-58b275b243e567cc5531165097524e8cc43a1629.zip
* frv.c (frv_print_operand_memory_reference): Fix format specifier
warning. (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66875 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/frv/frv.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1da64c9c90d..147c04d27a2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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.
+
* m68k.c (m68k_output_function_epilogue): Fix format specifier
warnings.
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c
index 4d55c87cdeb..e0fb2f9ef35 100644
--- a/gcc/config/frv/frv.c
+++ b/gcc/config/frv/frv.c
@@ -2564,7 +2564,8 @@ frv_print_operand_memory_reference (stream, x, addr_offset)
{
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);
@@ -9737,7 +9738,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)
OpenPOWER on IntegriCloud