Mercurial > hg > CbC > CbC_gcc
diff gcc/sbitmap.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | b7f97abdc517 |
line wrap: on
line diff
--- a/gcc/sbitmap.c Sun Feb 07 18:28:00 2010 +0900 +++ b/gcc/sbitmap.c Fri Feb 12 23:39:51 2010 +0900 @@ -55,7 +55,7 @@ { unsigned ix; unsigned int lastword; - + if (!a->popcount) return; @@ -91,7 +91,7 @@ sbitmap sbitmap_alloc_with_popcount (unsigned int n_elms) { - sbitmap const bmap = sbitmap_alloc (n_elms); + sbitmap const bmap = sbitmap_alloc (n_elms); bmap->popcount = XNEWVEC (unsigned char, bmap->size); return bmap; } @@ -121,7 +121,7 @@ { if (def) { - memset (bmap->elms + bmap->size, -1, + memset (bmap->elms + bmap->size, -1, bytes - SBITMAP_SIZE_BYTES (bmap)); /* Set the new bits if the original last element. */ @@ -138,13 +138,13 @@ } else { - memset (bmap->elms + bmap->size, 0, + memset (bmap->elms + bmap->size, 0, bytes - SBITMAP_SIZE_BYTES (bmap)); if (bmap->popcount) memset (bmap->popcount + bmap->size, 0, - (size * sizeof (unsigned char)) + (size * sizeof (unsigned char)) - (bmap->size * sizeof (unsigned char))); - + } } else if (n_elms < bmap->n_bits) @@ -247,7 +247,7 @@ void sbitmap_copy_n (sbitmap dst, const_sbitmap src, unsigned int n) { - memcpy (dst->elms, src->elms, sizeof (SBITMAP_ELT_TYPE) * n); + memcpy (dst->elms, src->elms, sizeof (SBITMAP_ELT_TYPE) * n); if (dst->popcount) memcpy (dst->popcount, src->popcount, sizeof (unsigned char) * n); } @@ -275,7 +275,7 @@ /* Return false if any of the N bits are set in MAP starting at START. */ -bool +bool sbitmap_range_empty_p (const_sbitmap bmap, unsigned int start, unsigned int n) { unsigned int i = start / SBITMAP_ELT_BITS; @@ -295,7 +295,7 @@ return (elm == 0); } - if (elm) + if (elm) return false; n -= SBITMAP_ELT_BITS - shift; @@ -316,7 +316,7 @@ elm = bmap->elms[i]; elm &= ((1 << n) - 1); return (elm == 0); - } + } return true; } @@ -350,7 +350,7 @@ bmap->elms[bmap->size - 1] = (SBITMAP_ELT_TYPE)-1 >> (SBITMAP_ELT_BITS - last_bit); if (bmap->popcount) - bmap->popcount[bmap->size - 1] + bmap->popcount[bmap->size - 1] = do_popcount (bmap->elms[bmap->size - 1]); } } @@ -392,7 +392,7 @@ SBITMAP_ELT_TYPE changed = 0; gcc_assert (!dst->popcount); - + for (i = 0; i < n; i++) { const SBITMAP_ELT_TYPE tmp = *ap++ | (*bp++ & ~*cp++); @@ -429,7 +429,7 @@ const_sbitmap_ptr srcp = src->elms; unsigned int last_bit; - gcc_assert (!dst->popcount); + gcc_assert (!dst->popcount); for (i = 0; i < n; i++) *dstp++ = ~*srcp++; @@ -531,7 +531,7 @@ if (wordchanged) *popcountp = do_popcount (tmp); popcountp++; - } + } *dstp++ = tmp; } #ifdef BITMAP_DEBUGGING @@ -551,7 +551,7 @@ const_sbitmap_ptr ap = a->elms; const_sbitmap_ptr bp = b->elms; SBITMAP_ELT_TYPE changed = 0; - + gcc_assert (!dst->popcount); for (i = 0; i < n; i++) @@ -583,7 +583,7 @@ if (wordchanged) *popcountp = do_popcount (tmp); popcountp++; - } + } *dstp++ = tmp; } #ifdef BITMAP_DEBUGGING @@ -635,7 +635,7 @@ if (wordchanged) *popcountp = do_popcount (tmp); popcountp++; - } + } *dstp++ = tmp; } #ifdef BITMAP_DEBUGGING @@ -756,7 +756,7 @@ e = EDGE_SUCC (b, ix); if (e->dest == EXIT_BLOCK_PTR) continue; - + sbitmap_copy (dst, src[e->dest->index]); break; } @@ -1061,7 +1061,7 @@ if (maxbit == 0) return 0; - + if (maxbit >= a->n_bits) maxbit = a->n_bits;