aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index 1481e1d..9ecfc96 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -924,7 +924,8 @@ static tree
find_reachable_label (tree exp)
{
location_t saved_loc = input_location;
- tree ret = walk_tree (&exp, find_reachable_label_1, NULL, NULL);
+ tree ret = walk_tree_without_duplicates
+ (&exp, find_reachable_label_1, NULL);
input_location = saved_loc;
return ret;
}