Commit 77ebd435 by Andreas Jaeger Committed by Andreas Jaeger

i386.c (ix86_init_builtins): Make i size_t to remove warnings.

2001-01-15  Andreas Jaeger  <aj@suse.de>

	* config/i386/i386.c (ix86_init_builtins): Make i size_t to remove warnings.
	(ix86_expand_builtin): Likewise.

	* gencodes.c (output_predicate_decls): Make i size_t to avoid
	warning about comparison between signed and unsigned.

From-SVN: r39036
parent 998a298e
2001-01-15 Andreas Jaeger <aj@suse.de>
* config/i386/i386.c (ix86_init_builtins): Make i size_t to remove warnings.
(ix86_expand_builtin): Likewise.
* gencodes.c (output_predicate_decls): Make i size_t to avoid
warning about comparison between signed and unsigned.
2001-01-14 Geoffrey Keating <geoffk@redhat.com> 2001-01-14 Geoffrey Keating <geoffk@redhat.com>
* expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs. * expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
......
...@@ -1715,7 +1715,7 @@ asm_output_function_prefix (file, name) ...@@ -1715,7 +1715,7 @@ asm_output_function_prefix (file, name)
internal (non-global) label that's being emitted, it didn't make internal (non-global) label that's being emitted, it didn't make
sense to have .type information for local labels. This caused sense to have .type information for local labels. This caused
the SCO OpenServer 5.0.4 ELF assembler grief (why are you giving the SCO OpenServer 5.0.4 ELF assembler grief (why are you giving
me debug info for a label that you're declaring non-global?) this me debug info for a label that you're declaring non-global?) this
was changed to call ASM_OUTPUT_LABEL() instead. */ was changed to call ASM_OUTPUT_LABEL() instead. */
ASM_OUTPUT_LABEL (file, pic_label_name); ASM_OUTPUT_LABEL (file, pic_label_name);
...@@ -3025,23 +3025,23 @@ output_pic_addr_const (file, x, code) ...@@ -3025,23 +3025,23 @@ output_pic_addr_const (file, x, code)
case UNSPEC: case UNSPEC:
if (XVECLEN (x, 0) != 1) if (XVECLEN (x, 0) != 1)
abort (); abort ();
output_pic_addr_const (file, XVECEXP (x, 0, 0), code); output_pic_addr_const (file, XVECEXP (x, 0, 0), code);
switch (XINT (x, 1)) switch (XINT (x, 1))
{ {
case 6: case 6:
fputs ("@GOT", file); fputs ("@GOT", file);
break; break;
case 7: case 7:
fputs ("@GOTOFF", file); fputs ("@GOTOFF", file);
break; break;
case 8: case 8:
fputs ("@PLT", file); fputs ("@PLT", file);
break; break;
default: default:
output_operand_lossage ("invalid UNSPEC as operand"); output_operand_lossage ("invalid UNSPEC as operand");
break; break;
} }
break; break;
default: default:
...@@ -5176,7 +5176,7 @@ ix86_expand_compare (code, second_test, bypass_test) ...@@ -5176,7 +5176,7 @@ ix86_expand_compare (code, second_test, bypass_test)
if (GET_MODE_CLASS (GET_MODE (op0)) == MODE_FLOAT) if (GET_MODE_CLASS (GET_MODE (op0)) == MODE_FLOAT)
ret = ix86_expand_fp_compare (code, op0, op1, gen_reg_rtx (HImode), ret = ix86_expand_fp_compare (code, op0, op1, gen_reg_rtx (HImode),
second_test, bypass_test); second_test, bypass_test);
else else
ret = ix86_expand_int_compare (code, op0, op1); ret = ix86_expand_int_compare (code, op0, op1);
...@@ -6324,7 +6324,7 @@ ix86_split_lshrdi (operands, scratch) ...@@ -6324,7 +6324,7 @@ ix86_split_lshrdi (operands, scratch)
out = result, initialized with the start address out = result, initialized with the start address
align_rtx = alignment of the address. align_rtx = alignment of the address.
scratch = scratch register, initialized with the startaddress when scratch = scratch register, initialized with the startaddress when
not aligned, otherwise undefined not aligned, otherwise undefined
This is just the body. It needs the initialisations mentioned above and This is just the body. It needs the initialisations mentioned above and
some address computing at the end. These things are done in i386.md. */ some address computing at the end. These things are done in i386.md. */
...@@ -6362,7 +6362,7 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx, scratch) ...@@ -6362,7 +6362,7 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx, scratch)
NULL_RTX, 0, OPTAB_WIDEN); NULL_RTX, 0, OPTAB_WIDEN);
emit_cmp_and_jump_insns (align_rtx, const0_rtx, EQ, NULL, emit_cmp_and_jump_insns (align_rtx, const0_rtx, EQ, NULL,
SImode, 1, 0, align_4_label); SImode, 1, 0, align_4_label);
emit_cmp_and_jump_insns (align_rtx, GEN_INT (2), EQ, NULL, emit_cmp_and_jump_insns (align_rtx, GEN_INT (2), EQ, NULL,
SImode, 1, 0, align_2_label); SImode, 1, 0, align_2_label);
emit_cmp_and_jump_insns (align_rtx, GEN_INT (2), GTU, NULL, emit_cmp_and_jump_insns (align_rtx, GEN_INT (2), GTU, NULL,
...@@ -6441,8 +6441,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx, scratch) ...@@ -6441,8 +6441,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx, scratch)
tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx); tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx);
emit_insn (gen_rtx_SET (VOIDmode, tmpreg, emit_insn (gen_rtx_SET (VOIDmode, tmpreg,
gen_rtx_IF_THEN_ELSE (SImode, tmp, gen_rtx_IF_THEN_ELSE (SImode, tmp,
reg, reg,
tmpreg))); tmpreg)));
/* Emit lea manually to avoid clobbering of flags. */ /* Emit lea manually to avoid clobbering of flags. */
emit_insn (gen_rtx_SET (SImode, reg, emit_insn (gen_rtx_SET (SImode, reg,
gen_rtx_PLUS (SImode, out, GEN_INT (2)))); gen_rtx_PLUS (SImode, out, GEN_INT (2))));
...@@ -6451,8 +6451,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx, scratch) ...@@ -6451,8 +6451,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx, scratch)
tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx); tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx);
emit_insn (gen_rtx_SET (VOIDmode, out, emit_insn (gen_rtx_SET (VOIDmode, out,
gen_rtx_IF_THEN_ELSE (SImode, tmp, gen_rtx_IF_THEN_ELSE (SImode, tmp,
reg, reg,
out))); out)));
} }
else else
...@@ -7581,7 +7581,7 @@ void ...@@ -7581,7 +7581,7 @@ void
ix86_init_builtins () ix86_init_builtins ()
{ {
struct builtin_description * d; struct builtin_description * d;
int i; size_t i;
tree endlink = void_list_node; tree endlink = void_list_node;
tree pchar_type_node = build_pointer_type (char_type_node); tree pchar_type_node = build_pointer_type (char_type_node);
...@@ -8231,7 +8231,7 @@ ix86_expand_builtin (exp, target, subtarget, mode, ignore) ...@@ -8231,7 +8231,7 @@ ix86_expand_builtin (exp, target, subtarget, mode, ignore)
int ignore ATTRIBUTE_UNUSED; int ignore ATTRIBUTE_UNUSED;
{ {
struct builtin_description *d; struct builtin_description *d;
int i; size_t i;
enum insn_code icode; enum insn_code icode;
tree fndecl = TREE_OPERAND (TREE_OPERAND (exp, 0), 0); tree fndecl = TREE_OPERAND (TREE_OPERAND (exp, 0), 0);
tree arglist = TREE_OPERAND (exp, 1); tree arglist = TREE_OPERAND (exp, 1);
......
...@@ -60,7 +60,7 @@ output_predicate_decls () ...@@ -60,7 +60,7 @@ output_predicate_decls ()
} predicate[] = { } predicate[] = {
PREDICATE_CODES PREDICATE_CODES
}; };
int i; size_t i;
putc ('\n', stdout); putc ('\n', stdout);
puts ("struct rtx_def;\n#include \"machmode.h\"\n"); puts ("struct rtx_def;\n#include \"machmode.h\"\n");
......
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