As noted last week, find_removable_extensions initializes several bitmaps, but doesn't clear them.
This is not strictly a leak as the GC system should find dead data, but it's better to go ahead and clear the bitmaps. That releases the elements back to the cache and presumably makes things easier for the GC system as well.
Bootstrapped and regression tested on x86_64-linux-gnu. OK for the trunk? Jeff
* ree.c (find_removable_extensions): Clear the local bitmaps. diff --git a/gcc/ree.c b/gcc/ree.c index 13a7a05..3dc180c 100644 --- a/gcc/ree.c +++ b/gcc/ree.c @@ -1139,6 +1139,10 @@ find_removable_extensions (void) } XDELETEVEC (def_map); + bitmap_clear (&init); + bitmap_clear (&kill); + bitmap_clear (&gen); + bitmap_clear (&tmp); return insn_list; }