xtensa.c: Remove unused include of machmode.h.

* 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.

From-SVN: r61739
This commit is contained in:
Bob Wilson 2003-01-24 22:09:05 +00:00 committed by Bob Wilson
parent 272f51a36f
commit 1d0ea52e2d
3 changed files with 18 additions and 9 deletions

View File

@ -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.

View File

@ -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__ */

View File

@ -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. */