diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-16 20:44:25 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-16 20:44:25 +0000 |
commit | e106fc2e45fa1225d6d01da972e7c2437cfd0628 (patch) | |
tree | a2c68bc9813da0e337eba95b9171246386e99d6f /gcc/ebitmap.h | |
parent | cd6342bd1ce409168e6980a1573ed0eaf8f570e6 (diff) | |
download | gcc-e106fc2e45fa1225d6d01da972e7c2437cfd0628.tar.gz |
* ebitmap.h (ebitmap_iter_init): Initialize all fields.
* ipa-struct-reorg.c (gen_struct_type): Replace known-true
test with assertion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ebitmap.h')
-rw-r--r-- | gcc/ebitmap.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ebitmap.h b/gcc/ebitmap.h index 2916e44b223..f2f2b705e89 100644 --- a/gcc/ebitmap.h +++ b/gcc/ebitmap.h @@ -1,5 +1,5 @@ /* Sparse array based bitmaps. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007, 2008 Free Software Foundation, Inc. This file is part of GCC. @@ -95,7 +95,13 @@ ebitmap_iter_init (ebitmap_iterator *i, ebitmap bmp, unsigned int min) min / EBITMAP_ELT_BITS); i->size = bmp->numwords; if (i->size == 0) - return; + { + i->ptr = NULL; + i->eltnum = 0; + i->bit_num = 0; + i->word = 0; + return; + } i->ptr = bmp->elts; i->bit_num = min; i->eltnum = 0; |