summaryrefslogtreecommitdiff
path: root/gcc/sbitmap.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-19 01:27:00 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-19 01:27:00 +0000
commit2976822627f44f301cb3a74e71b9a0127aecec71 (patch)
tree4e76f0295c3501797dbd329a63105f6a7c70f1e9 /gcc/sbitmap.c
parente238c961c77fe8778c12739cb3d73512a06944f0 (diff)
downloadgcc-2976822627f44f301cb3a74e71b9a0127aecec71.tar.gz
* bitmap.c (bitmap_operation): Avoid using -1 for index since unsigned.
* cppinit.c (new_pending_define): Add cast to avoid warning. * expmed.c (extract_bit_field): Likewise. * flow.c (enum reorder_skip_type): New type. (skip_insns_between_blcok): New it. Rework to avoid warning about possibly undefined variable. * function.c (assign_parms): Make thisparm_boundary unsigned. * genrecog.c (write_switch): Cast XWINT result to int. * lcm.c: Many static fcns and vars now #ifdef OPTIMIZE_MODE_SWITCHING. * mips-tfile.c (init_file): Make two versions of FDR intializer: one for MIPS and one for Alpha. (get_tag, copy_object): Add casts to avoid warnings. * optabs.c (init_one_libfunc): Cast NAME to (char *). * reload.c (find_reloads): Make TYPE enum reload_type. * sbitmap.c (dump_sbitmap): J is unsigned; don't use "1L". * unroll.c (unroll_loop): Initialize UNROLL_NUMBER. * varasm.c (compare_constant_1): Add cast to avoid warning. * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Cast FUNC to (char *). (alpha_expand_unaligned_load, alpha_expand_unaligned_store): Cast switch operand of size to int. (alpha_expand_epilogue): Always initialize fp_offset and sa_reg. * config/alpha/alpha.h (INITIAL_ELIMINATION_OFFSET): Add abort in unhandled case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32060 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sbitmap.c')
-rw-r--r--gcc/sbitmap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/sbitmap.c b/gcc/sbitmap.c
index 0046c57736e..335659d9b35 100644
--- a/gcc/sbitmap.c
+++ b/gcc/sbitmap.c
@@ -540,7 +540,8 @@ dump_sbitmap (file, bmap)
FILE *file;
sbitmap bmap;
{
- int i,j,n;
+ int i, n;
+ unsigned int j;
int set_size = bmap->size;
int total_bits = bmap->n_bits;
@@ -551,7 +552,8 @@ dump_sbitmap (file, bmap)
{
if (n != 0 && n % 10 == 0)
fprintf (file, " ");
- fprintf (file, "%d", (bmap->elms[i] & (1L << j)) != 0);
+ fprintf (file, "%d",
+ (bmap->elms[i] & ((SBITMAP_ELT_TYPE) 1 << j)) != 0);
}
}
fprintf (file, "\n");