diff options
author | Richard Guenther <rguenther@suse.de> | 2007-03-29 12:55:14 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2007-03-29 12:55:14 +0000 |
commit | 2a42f4aa198bf06b093a76d38dd29a49324d904e (patch) | |
tree | d91a30fe00ce67e806abc4c29f7ee5b9d9dbafcb | |
parent | cab6e7717eff3872849ef593073e9e3a6ad47956 (diff) | |
download | gcc-2a42f4aa198bf06b093a76d38dd29a49324d904e.zip gcc-2a42f4aa198bf06b093a76d38dd29a49324d904e.tar.gz gcc-2a42f4aa198bf06b093a76d38dd29a49324d904e.tar.bz2 |
tree.c (cp_walk_subtrees): Do not set input_location.
2007-03-29 Richard Guenther <rguenther@suse.de>
* tree.c (cp_walk_subtrees): Do not set input_location.
From-SVN: r123329
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/tree.c | 9 |
2 files changed, 4 insertions, 9 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4f2b061..bf5e28c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-03-29 Richard Guenther <rguenther@suse.de> + + * tree.c (cp_walk_subtrees): Do not set input_location. + 2007-03-28 Simon Martin <simartin@users.sourceforge.net> PR c++/29077 diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index d334a68..7fd6664 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2203,7 +2203,6 @@ cp_walk_subtrees (tree *tp, int *walk_subtrees_p, walk_tree_fn func, void *data, struct pointer_set_t *pset) { enum tree_code code = TREE_CODE (*tp); - location_t save_locus; tree result; #define WALK_SUBTREE(NODE) \ @@ -2214,12 +2213,6 @@ cp_walk_subtrees (tree *tp, int *walk_subtrees_p, walk_tree_fn func, } \ while (0) - /* Set input_location here so we get the right instantiation context - if we call instantiate_decl from inlinable_function_p. */ - save_locus = input_location; - if (EXPR_HAS_LOCATION (*tp)) - input_location = EXPR_LOCATION (*tp); - /* Not one of the easy cases. We must explicitly go through the children. */ result = NULL_TREE; @@ -2301,13 +2294,11 @@ cp_walk_subtrees (tree *tp, int *walk_subtrees_p, walk_tree_fn func, break; default: - input_location = save_locus; return NULL_TREE; } /* We didn't find what we were looking for. */ out: - input_location = save_locus; return result; #undef WALK_SUBTREE |