This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Uninitialised memory read in gcc-2.95.2/gcc/lcm.c


>           sbitmap_intersect_of_successors (temp_bitmap, delayin,
> 				           bb, s_succs);
> 	  sbitmap_not (temp_bitmap, temp_bitmap);
[..]
> If not, then there's a need for "sbitmap_ones (temp_bitmap);" or
> "sbitmap_zero (temp_bitmap);" in the if part.

How's that? temp_bitmap is initialized in the first call, and then
negated in the second. There should be no need to initialize it
further.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]