Fix -ftime-report for C++ lookup.
commite3b350575018370e7564d9686ede0f804b99637f
authorDiego Novillo <dnovillo@google.com>
Mon, 20 Aug 2012 14:23:32 +0000 (20 10:23 -0400)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Mon, 20 Aug 2012 14:23:32 +0000 (20 10:23 -0400)
treedb19c9388a58aa903a93fa7ea4a50d5c130bd265
parenteb83633a818fcc4c568d633d7ddbac078d2fc1fe
Fix -ftime-report for C++ lookup.

Found this while running -ftime-report on a largish C++ source file.
We need to start TV_NAME_LOOKUP conditionally inside poplevel()
because it may be called from another lookup routine that already has
TV_NAME_LOOKUP going.

Tested on x86_64.  Committed to trunk.

2012-08-20  Diego Novillo  <dnovillo@google.com>

* decl.c (poplevel): Start TV_NAME_LOOKUP conditionally.

From-SVN: r190535
gcc/cp/ChangeLog
gcc/cp/decl.c