summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-24 22:09:05 +0000
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2003-01-24 22:09:05 +0000
commita6169f0673e39793d60264d93c95b6cee24fa08a (patch)
tree61a227327333c39fe34a5955914cea7e1e3be32e /gcc
parent0a68165a0a81e66224f596a3eeb36b0c7541a44a (diff)
downloadgcc-a6169f0673e39793d60264d93c95b6cee24fa08a.tar.gz
* config/xtensa/xtensa.c: Remove unused include of machmode.h.
(xtensa_emit_call, print_operand): Fix printf format strings to avoid compile warnings. (xtensa_function_prologue, xtensa_function_epilogue): Change type of "size" argument to HOST_WIDE_INT to fix compile warnings. * config/xtensa/xtensa-protos.h (xtensa_function_prologue, xtensa_function_epilogue): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61739 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/xtensa/xtensa-protos.h4
-rw-r--r--gcc/config/xtensa/xtensa.c13
3 files changed, 18 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index de8a841d2bf..e15a89ec5aa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+2003-01-24 Bob Wilson <bob.wilson@acm.org>
+
+ * config/xtensa/xtensa.c: Remove unused include of machmode.h.
+ (xtensa_emit_call, print_operand): Fix printf format strings
+ to avoid compile warnings.
+ (xtensa_function_prologue, xtensa_function_epilogue): Change type
+ of "size" argument to HOST_WIDE_INT to fix compile warnings.
+ * config/xtensa/xtensa-protos.h
+ (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
+
Fri Jan 24 23:03:32 CET 2003 Jan Hubicka <jh@suse.cz>
* builtins.c (DEF_BUILTIN): Accept 10 arguments.
diff --git a/gcc/config/xtensa/xtensa-protos.h b/gcc/config/xtensa/xtensa-protos.h
index 195d71da642..d5de1c8bc26 100644
--- a/gcc/config/xtensa/xtensa-protos.h
+++ b/gcc/config/xtensa/xtensa-protos.h
@@ -113,8 +113,8 @@ extern void xtensa_declare_object
PARAMS ((FILE *, char *, char *, char *, int));
extern long compute_frame_size PARAMS ((int));
extern int xtensa_frame_pointer_required PARAMS ((void));
-extern void xtensa_function_prologue PARAMS ((FILE *, int));
-extern void xtensa_function_epilogue PARAMS ((FILE *, int));
+extern void xtensa_function_prologue PARAMS ((FILE *, HOST_WIDE_INT));
+extern void xtensa_function_epilogue PARAMS ((FILE *, HOST_WIDE_INT));
extern void order_regs_for_local_alloc PARAMS ((void));
#endif /* !__XTENSA_PROTOS_H__ */
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 4ad8c80475b..c0d0ab0780d 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -25,7 +25,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "tm.h"
#include "rtl.h"
#include "regs.h"
-#include "machmode.h"
#include "hard-reg-set.h"
#include "basic-block.h"
#include "real.h"
@@ -1668,7 +1667,7 @@ xtensa_emit_call (callop, operands)
rtx tgt = operands[callop];
if (GET_CODE (tgt) == CONST_INT)
- sprintf (result, "call8\t0x%x", INTVAL (tgt));
+ sprintf (result, "call8\t0x%lx", INTVAL (tgt));
else if (register_operand (tgt, VOIDmode))
sprintf (result, "callx8\t%%%d", callop);
else
@@ -1997,11 +1996,11 @@ print_operand (file, op, letter)
}
case 'L':
- fprintf (file, "%d", (32 - INTVAL (op)) & 0x1f);
+ fprintf (file, "%ld", (32 - INTVAL (op)) & 0x1f);
break;
case 'R':
- fprintf (file, "%d", INTVAL (op) & 0x1f);
+ fprintf (file, "%ld", INTVAL (op) & 0x1f);
break;
case 'x':
@@ -2010,7 +2009,7 @@ print_operand (file, op, letter)
case 'd':
default:
- fprintf (file, "%d", INTVAL (op));
+ fprintf (file, "%ld", INTVAL (op));
break;
}
@@ -2271,7 +2270,7 @@ xtensa_reorg (first)
void
xtensa_function_prologue (file, size)
FILE *file;
- int size ATTRIBUTE_UNUSED;
+ HOST_WIDE_INT size ATTRIBUTE_UNUSED;
{
unsigned long tsize = compute_frame_size (get_frame_size ());
@@ -2304,7 +2303,7 @@ xtensa_function_prologue (file, size)
void
xtensa_function_epilogue (file, size)
FILE *file;
- int size ATTRIBUTE_UNUSED;
+ HOST_WIDE_INT size ATTRIBUTE_UNUSED;
{
rtx insn = get_last_insn ();
/* If the last insn was a BARRIER, we don't have to write anything. */