diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2004-12-22 02:38:15 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2004-12-22 02:38:15 +0000 |
commit | be99edf8839b914004bc3f96f5acdc515198db86 (patch) | |
tree | 07c89450d9013a42c61368991b5eee0548ee0bf8 /gcc | |
parent | a90f8ad5fb98edb96e3705858854140b647fd0fe (diff) | |
download | gcc-be99edf8839b914004bc3f96f5acdc515198db86.zip gcc-be99edf8839b914004bc3f96f5acdc515198db86.tar.gz gcc-be99edf8839b914004bc3f96f5acdc515198db86.tar.bz2 |
decl.c (define_label): Use POP_TIMEVAR_AND_RETURN.
* decl.c (define_label): Use POP_TIMEVAR_AND_RETURN.
* name-lookup.c (pushdecl_class_level): Likewise.
From-SVN: r92485
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 3 | ||||
-rw-r--r-- | gcc/cp/name-lookup.c | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bb5af6d..087fcc6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + + * decl.c (define_label): Use POP_TIMEVAR_AND_RETURN. + * name-lookup.c (pushdecl_class_level): Likewise. + 2004-12-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de> * name-lookup.c (pushtag): Add missing POP_TIMEVAR_AND_RETURN. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 515bb2c..ed0604c 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -2431,8 +2431,7 @@ define_label (location_t location, tree name) check_previous_gotos (decl); } - timevar_pop (TV_NAME_LOOKUP); - return decl; + POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, decl); } struct cp_switch diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index c856463..0ee9dfe 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -2480,9 +2480,7 @@ pushdecl_class_level (tree x) input_location = save_location; } } - timevar_pop (TV_NAME_LOOKUP); - - return is_valid; + POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, is_valid); } /* Return the BINDING (if any) for NAME in SCOPE, which is a class |