diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-06-16 21:41:10 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-06-16 21:41:10 +0000 |
commit | fad205ffba97267072c69704481aac372dd62f16 (patch) | |
tree | 5aa9e7cef82d21751e0893c56bdaeadef5722525 /gcc/sbitmap.c | |
parent | 4ff58371763d8dfb211e776e22e74a51fa3eb909 (diff) | |
download | gcc-fad205ffba97267072c69704481aac372dd62f16.zip gcc-fad205ffba97267072c69704481aac372dd62f16.tar.gz gcc-fad205ffba97267072c69704481aac372dd62f16.tar.bz2 |
decl.c, [...]: Don't use the PTR macro.
cp:
* cp/decl.c, cp/pt.c, cp/search.c, cp/tree.c: Don't use the PTR
macro.
gcc:
* bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
function.c, gcc.c, genoutput.c, gensupport.c, global.c,
haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
the PTR macro.
From-SVN: r68043
Diffstat (limited to 'gcc/sbitmap.c')
-rw-r--r-- | gcc/sbitmap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/sbitmap.c b/gcc/sbitmap.c index ce60ca8..2c4ac15 100644 --- a/gcc/sbitmap.c +++ b/gcc/sbitmap.c @@ -68,14 +68,14 @@ sbitmap_resize (bmap, n_elms, def) { amt = (sizeof (struct simple_bitmap_def) + bytes - sizeof (SBITMAP_ELT_TYPE)); - bmap = (sbitmap) xrealloc ((PTR) bmap, amt); + bmap = (sbitmap) xrealloc (bmap, amt); } if (n_elms > bmap->n_bits) { if (def) { - memset ((PTR) (bmap->elms + bmap->size), -1, bytes - bmap->bytes); + memset (bmap->elms + bmap->size, -1, bytes - bmap->bytes); /* Set the new bits if the original last element. */ last_bit = bmap->n_bits % SBITMAP_ELT_BITS; @@ -90,7 +90,7 @@ sbitmap_resize (bmap, n_elms, def) &= (SBITMAP_ELT_TYPE)-1 >> (SBITMAP_ELT_BITS - last_bit); } else - memset ((PTR) (bmap->elms + bmap->size), 0, bytes - bmap->bytes); + memset (bmap->elms + bmap->size, 0, bytes - bmap->bytes); } else if (n_elms < bmap->n_bits) { @@ -173,7 +173,7 @@ void sbitmap_zero (bmap) sbitmap bmap; { - memset ((PTR) bmap->elms, 0, bmap->bytes); + memset (bmap->elms, 0, bmap->bytes); } /* Set all elements in a bitmap to ones. */ @@ -184,7 +184,7 @@ sbitmap_ones (bmap) { unsigned int last_bit; - memset ((PTR) bmap->elms, -1, bmap->bytes); + memset (bmap->elms, -1, bmap->bytes); last_bit = bmap->n_bits % SBITMAP_ELT_BITS; if (last_bit) |