http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53525
--- Comment #4 from jimis <jimis at gmx dot net> 2012-05-30 05:23:54 UTC --- Another hotspot higlighted by valgrind is the multitude of malloc/free() calls in comparison to the past. I'm attaching a slightly more intrusive patch that uses obstacks to allocate some of the virt_locs. It manages to save about 15 M instr or 2-3 ms, almost unnoticeable difference. Even though it seems to work fine it's not ready to commit, just an RFC for moving to obstacks. I'm also attaching some changes in libiberty.h that introduce some more XOB* macros.