]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/name-lookup.c
Reuse the saved_scope structures allocated by push_to_top_level
authorPatrick Palka <ppalka@gcc.gnu.org>
Thu, 21 Apr 2016 21:55:35 +0000 (21:55 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Thu, 21 Apr 2016 21:55:35 +0000 (21:55 +0000)
commit5c71225085d9b18c54d39bc2601f080c16d99834
tree1e483df6c812e44c59a5a71f90692d835c245a6c
parent617d8e43f95f1dc7fdeebf980723a675a233b0db
Reuse the saved_scope structures allocated by push_to_top_level

gcc/cp/ChangeLog:

* name-lookup.c (free_saved_scope): New free list of saved_scope
structures.
(push_to_top_level): Attempt to reuse a saved_scope struct
from free_saved_scope instead of allocating a new one each time.
(pop_from_top_level_1): Chain the now-unused saved_scope structure
onto free_saved_scope.

From-SVN: r235351
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
This page took 0.059471 seconds and 5 git commands to generate.