aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-01-15 14:19:31 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2001-01-15 14:19:31 +0100
commit77ebd4356e5a4498097405575bbfe0d56e21cd8a (patch)
tree4249fc58bf9f80405c1cd88ca0d62f7ab35d9583 /gcc
parent998a298e1e8829e25fc97c9dc6563a6bb592ef0e (diff)
downloadgcc-77ebd4356e5a4498097405575bbfe0d56e21cd8a.zip
gcc-77ebd4356e5a4498097405575bbfe0d56e21cd8a.tar.gz
gcc-77ebd4356e5a4498097405575bbfe0d56e21cd8a.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/i386/i386.c50
-rw-r--r--gcc/gencodes.c2
3 files changed, 34 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 18db676..f3b0f65 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+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>
* expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 6508478..db32bda 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -1715,7 +1715,7 @@ asm_output_function_prefix (file, name)
internal (non-global) label that's being emitted, it didn't make
sense to have .type information for local labels. This caused
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. */
ASM_OUTPUT_LABEL (file, pic_label_name);
@@ -3025,23 +3025,23 @@ output_pic_addr_const (file, x, code)
case UNSPEC:
if (XVECLEN (x, 0) != 1)
- abort ();
+ abort ();
output_pic_addr_const (file, XVECEXP (x, 0, 0), code);
switch (XINT (x, 1))
- {
- case 6:
- fputs ("@GOT", file);
- break;
- case 7:
- fputs ("@GOTOFF", file);
- break;
- case 8:
- fputs ("@PLT", file);
- break;
- default:
- output_operand_lossage ("invalid UNSPEC as operand");
- break;
- }
+ {
+ case 6:
+ fputs ("@GOT", file);
+ break;
+ case 7:
+ fputs ("@GOTOFF", file);
+ break;
+ case 8:
+ fputs ("@PLT", file);
+ break;
+ default:
+ output_operand_lossage ("invalid UNSPEC as operand");
+ break;
+ }
break;
default:
@@ -5176,7 +5176,7 @@ ix86_expand_compare (code, second_test, bypass_test)
if (GET_MODE_CLASS (GET_MODE (op0)) == MODE_FLOAT)
ret = ix86_expand_fp_compare (code, op0, op1, gen_reg_rtx (HImode),
- second_test, bypass_test);
+ second_test, bypass_test);
else
ret = ix86_expand_int_compare (code, op0, op1);
@@ -6324,7 +6324,7 @@ ix86_split_lshrdi (operands, scratch)
out = result, initialized with the start address
align_rtx = alignment of the address.
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
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)
NULL_RTX, 0, OPTAB_WIDEN);
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,
SImode, 1, 0, align_2_label);
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)
tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx);
emit_insn (gen_rtx_SET (VOIDmode, tmpreg,
gen_rtx_IF_THEN_ELSE (SImode, tmp,
- reg,
- tmpreg)));
+ reg,
+ tmpreg)));
/* Emit lea manually to avoid clobbering of flags. */
emit_insn (gen_rtx_SET (SImode, reg,
gen_rtx_PLUS (SImode, out, GEN_INT (2))));
@@ -6451,8 +6451,8 @@ ix86_expand_strlensi_unroll_1 (out, align_rtx, scratch)
tmp = gen_rtx_EQ (VOIDmode, tmp, const0_rtx);
emit_insn (gen_rtx_SET (VOIDmode, out,
gen_rtx_IF_THEN_ELSE (SImode, tmp,
- reg,
- out)));
+ reg,
+ out)));
}
else
@@ -7581,7 +7581,7 @@ void
ix86_init_builtins ()
{
struct builtin_description * d;
- int i;
+ size_t i;
tree endlink = void_list_node;
tree pchar_type_node = build_pointer_type (char_type_node);
@@ -8231,7 +8231,7 @@ ix86_expand_builtin (exp, target, subtarget, mode, ignore)
int ignore ATTRIBUTE_UNUSED;
{
struct builtin_description *d;
- int i;
+ size_t i;
enum insn_code icode;
tree fndecl = TREE_OPERAND (TREE_OPERAND (exp, 0), 0);
tree arglist = TREE_OPERAND (exp, 1);
diff --git a/gcc/gencodes.c b/gcc/gencodes.c
index ca78782..3e14f39 100644
--- a/gcc/gencodes.c
+++ b/gcc/gencodes.c
@@ -60,7 +60,7 @@ output_predicate_decls ()
} predicate[] = {
PREDICATE_CODES
};
- int i;
+ size_t i;
putc ('\n', stdout);
puts ("struct rtx_def;\n#include \"machmode.h\"\n");