diff options
author | Diego Novillo <dnovillo@google.com> | 2011-09-14 15:32:03 -0400 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2011-09-14 15:32:03 -0400 |
commit | 700cf92e7575733adbc4a8200b602179a3194a16 (patch) | |
tree | a6926e6d25c5a700af169512c732bf6bd6fc4ace /gcc/cp | |
parent | 4d7b770603105640aca8c40b9bcdf7416eceed37 (diff) | |
download | gcc-700cf92e7575733adbc4a8200b602179a3194a16.zip gcc-700cf92e7575733adbc4a8200b602179a3194a16.tar.gz gcc-700cf92e7575733adbc4a8200b602179a3194a16.tar.bz2 |
name-lookup.c (lookup_arg_dependent): Use conditional timevars.
* name-lookup.c (lookup_arg_dependent): Use conditional
timevars.
* decl.c (xref_tag): Likewise.
From-SVN: r178860
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/decl.c | 5 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 5 |
3 files changed, 12 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 8b15ca6..be4f63b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2011-09-14 Diego Novillo <dnovillo@google.com> + + * name-lookup.c (lookup_arg_dependent): Use conditional + timevars. + * decl.c (xref_tag): Likewise. + 2011-09-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50391 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index dc49eb2..a61b359 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11599,9 +11599,10 @@ xref_tag (enum tag_types tag_code, tree name, tag_scope scope, bool template_header_p) { tree ret; - timevar_start (TV_NAME_LOOKUP); + bool subtime; + subtime = timevar_cond_start (TV_NAME_LOOKUP); ret = xref_tag_1 (tag_code, name, scope, template_header_p); - timevar_stop (TV_NAME_LOOKUP); + timevar_cond_stop (TV_NAME_LOOKUP, subtime); return ret; } diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 4219548..7141c84 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -5438,9 +5438,10 @@ lookup_arg_dependent (tree name, tree fns, VEC(tree,gc) *args, bool include_std) { tree ret; - timevar_start (TV_NAME_LOOKUP); + bool subtime; + subtime = timevar_cond_start (TV_NAME_LOOKUP); ret = lookup_arg_dependent_1 (name, fns, args, include_std); - timevar_stop (TV_NAME_LOOKUP); + timevar_cond_stop (TV_NAME_LOOKUP, subtime); return ret; } |