Commit c3d03e3a by Kaveh R. Ghazi Committed by Kaveh Ghazi

iris6.h (ASM_DECLARE_OBJECT_NAME, [...]): Fix format specifier warnings.

	* iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
	Fix format specifier warnings.

	* irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
	inet_makeaddr, semctl): Prototype.

	* mips.c (compute_frame_size): Fix signed/unsigned warnings.
	(save_restore_insns): Use base_offset, not gp_offset.

	* mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
	(ASM_OUTPUT_BYTE): Fix format specifier warning.

From-SVN: r45258
parent e0e4041f
2001-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
Fix format specifier warnings.
* irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
inet_makeaddr, semctl): Prototype.
* mips.c (compute_frame_size): Fix signed/unsigned warnings.
(save_restore_insns): Use base_offset, not gp_offset.
* mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
(ASM_OUTPUT_BYTE): Fix format specifier warning.
2001-08-29 Richard Henderson <rth@redhat.com> 2001-08-29 Richard Henderson <rth@redhat.com>
* bb-reorder.c (function_tail_eff_head): New. * bb-reorder.c (function_tail_eff_head): New.
......
...@@ -399,7 +399,9 @@ do \ ...@@ -399,7 +399,9 @@ do \
size_directive_output = 1; \ size_directive_output = 1; \
fprintf (STREAM, "%s", SIZE_ASM_OP); \ fprintf (STREAM, "%s", SIZE_ASM_OP); \
assemble_name (STREAM, NAME); \ assemble_name (STREAM, NAME); \
fprintf (STREAM, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \ fprintf (STREAM, ","); \
fprintf (STREAM, HOST_WIDE_INT_PRINT_DEC, int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (STREAM, "\n"); \
} \ } \
mips_declare_object (STREAM, NAME, "", ":\n", 0); \ mips_declare_object (STREAM, NAME, "", ":\n", 0); \
} \ } \
...@@ -428,7 +430,9 @@ do { \ ...@@ -428,7 +430,9 @@ do { \
size_directive_output = 1; \ size_directive_output = 1; \
fprintf (FILE, "%s", SIZE_ASM_OP); \ fprintf (FILE, "%s", SIZE_ASM_OP); \
assemble_name (FILE, name); \ assemble_name (FILE, name); \
fprintf (FILE, ",%d\n", int_size_in_bytes (TREE_TYPE (DECL))); \ fprintf (FILE, ","); \
fprintf (FILE, HOST_WIDE_INT_PRINT_DEC, int_size_in_bytes (TREE_TYPE (DECL))); \
fprintf (FILE, "\n"); \
} \ } \
} while (0) } while (0)
......
...@@ -67,6 +67,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -67,6 +67,11 @@ Boston, MA 02111-1307, USA. */
always 32. */ always 32. */
#define SHIFT_BITS 32 #define SHIFT_BITS 32
extern machreg_t inet_ntoa PARAMS ((machreg_t));
extern machreg_t inet_lnaof PARAMS ((machreg_t));
extern machreg_t inet_netof PARAMS ((machreg_t));
extern machreg_t inet_makeaddr PARAMS ((machreg_t, machreg_t));
extern machreg_t _inet_ntoa PARAMS ((machreg_t)); extern machreg_t _inet_ntoa PARAMS ((machreg_t));
extern machreg_t _inet_lnaof PARAMS ((machreg_t)); extern machreg_t _inet_lnaof PARAMS ((machreg_t));
extern machreg_t _inet_netof PARAMS ((machreg_t)); extern machreg_t _inet_netof PARAMS ((machreg_t));
...@@ -120,6 +125,7 @@ inet_makeaddr (machreg_t net, machreg_t lna) ...@@ -120,6 +125,7 @@ inet_makeaddr (machreg_t net, machreg_t lna)
} }
#if _MIPS_SIM == _ABIN32 #if _MIPS_SIM == _ABIN32
extern machreg_t semctl PARAMS ((machreg_t, machreg_t, machreg_t, machreg_t));
extern machreg_t _semctl PARAMS ((machreg_t, machreg_t, machreg_t, machreg_t)); extern machreg_t _semctl PARAMS ((machreg_t, machreg_t, machreg_t, machreg_t));
/* <sys/sem.h> has /* <sys/sem.h> has
......
...@@ -6246,7 +6246,7 @@ HOST_WIDE_INT ...@@ -6246,7 +6246,7 @@ HOST_WIDE_INT
compute_frame_size (size) compute_frame_size (size)
HOST_WIDE_INT size; /* # of var. bytes allocated */ HOST_WIDE_INT size; /* # of var. bytes allocated */
{ {
int regno; unsigned int regno;
HOST_WIDE_INT total_size; /* # bytes that the entire frame takes up */ HOST_WIDE_INT total_size; /* # bytes that the entire frame takes up */
HOST_WIDE_INT var_size; /* # bytes that variables take up */ HOST_WIDE_INT var_size; /* # bytes that variables take up */
HOST_WIDE_INT args_size; /* # bytes that outgoing arguments take up */ HOST_WIDE_INT args_size; /* # bytes that outgoing arguments take up */
...@@ -6319,7 +6319,7 @@ compute_frame_size (size) ...@@ -6319,7 +6319,7 @@ compute_frame_size (size)
/* We need to restore these for the handler. */ /* We need to restore these for the handler. */
if (current_function_calls_eh_return) if (current_function_calls_eh_return)
{ {
int i; unsigned int i;
for (i = 0; ; ++i) for (i = 0; ; ++i)
{ {
regno = EH_RETURN_DATA_REGNO (i); regno = EH_RETURN_DATA_REGNO (i);
...@@ -6782,7 +6782,7 @@ save_restore_insns (store_p, large_reg, large_offset, file) ...@@ -6782,7 +6782,7 @@ save_restore_insns (store_p, large_reg, large_offset, file)
RTX_UNCHANGING_P (mem_rtx) = 1; RTX_UNCHANGING_P (mem_rtx) = 1;
if (store_p) if (store_p)
mips_emit_frame_related_store (mem_rtx, reg_rtx, gp_offset); mips_emit_frame_related_store (mem_rtx, reg_rtx, base_offset);
else else
emit_move_insn (reg_rtx, mem_rtx); emit_move_insn (reg_rtx, mem_rtx);
} }
......
...@@ -2750,7 +2750,7 @@ typedef struct mips_args { ...@@ -2750,7 +2750,7 @@ typedef struct mips_args {
: GP_REG_P (regno)) : GP_REG_P (regno))
#define GP_REG_OR_PSEUDO_STRICT_P(regno, mode) \ #define GP_REG_OR_PSEUDO_STRICT_P(regno, mode) \
BASE_REG_P((regno < FIRST_PSEUDO_REGISTER) ? regno : reg_renumber[regno], \ BASE_REG_P((regno < FIRST_PSEUDO_REGISTER) ? (int) regno : reg_renumber[regno], \
(mode)) (mode))
#define GP_REG_OR_PSEUDO_NONSTRICT_P(regno, mode) \ #define GP_REG_OR_PSEUDO_NONSTRICT_P(regno, mode) \
...@@ -4325,7 +4325,7 @@ do { \ ...@@ -4325,7 +4325,7 @@ do { \
/* This is how to output an assembler line for a numeric constant byte. */ /* This is how to output an assembler line for a numeric constant byte. */
#define ASM_OUTPUT_BYTE(STREAM,VALUE) \ #define ASM_OUTPUT_BYTE(STREAM,VALUE) \
fprintf (STREAM, "\t.byte\t0x%x\n", (VALUE)) fprintf (STREAM, "\t.byte\t0x%x\n", (int)(VALUE))
/* This is how to output an element of a case-vector that is absolute. */ /* This is how to output an element of a case-vector that is absolute. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment