Fix -ftime-report for C++ lookup.
commite351d4e77b717e2f54266b9f67e82d78a4bcd75e
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Aug 2012 14:23:32 +0000 (20 14:23 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Aug 2012 14:23:32 +0000 (20 14:23 +0000)
treedb19c9388a58aa903a93fa7ea4a50d5c130bd265
parentf314299ca05aa27ca25446fc63652dcc0d1523fb
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190535 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl.c