This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFA:] Fix uninitialized-bug in gcc/bitmap.c, spotted by valgrind.
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 02 Dec 2002 20:40:44 +0000
- Subject: Re: [RFA:] Fix uninitialized-bug in gcc/bitmap.c, spotted by valgrind.
- Organization: SuperH UK Ltd.
- References: <3DEBB783.318D2967@superh.com>
Joern Rennecke wrote:
>
> Doesn't c in bitmap_equal_p need the same initialization?
>
> How about tmp_head in flow.c:calculate_global_regs_live?
> diff_head in flow.c:init_propagate_block_info ?
> tmp_head in ifcvt.c:dead_or_predicable ?
Ooops, sorry, I was looking at the wrong versions of
bitmap_equal_p / bitmap_initialize. The former specifies
non-obstack allocation, while the latter allows either,
and is called with obstack allocation being specified
by INITIALIZE_REG_SET.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658