From 07a6825b5f49ab65ea4ca12ecd41f26409e80f54 Mon Sep 17 00:00:00 2001 From: "Balaji V. Iyer" Date: Thu, 20 Jun 2013 22:52:07 +0000 Subject: [PATCH] array-notation-common.c (find_inv_trees): Removed an unwanted typecasting. 2013-06-20 Balaji V. Iyer * array-notation-common.c (find_inv_trees): Removed an unwanted typecasting. * c-common.h (struct inv_list::additional_tcodes): Changed type from enum rid to enum tree_code. From-SVN: r200272 --- gcc/c-family/ChangeLog | 7 +++++++ gcc/c-family/array-notation-common.c | 2 +- gcc/c-family/c-common.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 3d8f68f7d31..a0f195b7a49 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,10 @@ +2013-06-20 Balaji V. Iyer + + * array-notation-common.c (find_inv_trees): Removed an unwanted + typecasting. + * c-common.h (struct inv_list::additional_tcodes): Changed type from + enum rid to enum tree_code. + 2013-06-11 Jan Hubicka * c-common.c (handle_alias_ifunc_attribute): Do not set diff --git a/gcc/c-family/array-notation-common.c b/gcc/c-family/array-notation-common.c index 489b67cafb9..c82d7dc8b80 100644 --- a/gcc/c-family/array-notation-common.c +++ b/gcc/c-family/array-notation-common.c @@ -484,7 +484,7 @@ find_inv_trees (tree *tp, int *walk_subtrees, void *data) tree codes such as TARGET_EXPR must be eliminated. These codes are passed into additional_tcodes and are walked through and checked. */ for (ii = 0; ii < vec_safe_length (i_list->additional_tcodes); ii++) - if (TREE_CODE (*tp) == (enum rid)(*(i_list->additional_tcodes))[ii]) + if (TREE_CODE (*tp) == (*(i_list->additional_tcodes))[ii]) *walk_subtrees = 0; } return NULL_TREE; diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h index 8eaf54fe502..82625d7f0e4 100644 --- a/gcc/c-family/c-common.h +++ b/gcc/c-family/c-common.h @@ -1157,7 +1157,7 @@ struct inv_list { vec *list_values; vec *replacement; - vec *additional_tcodes; + vec *additional_tcodes; }; /* In array-notation-common.c. */ -- 2.30.2