diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index d37a2c23a7d..a8e06efb22d 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -9636,9 +9636,8 @@ loc_descriptor_from_tree_1 (tree loc, int want_address) CASE_CONVERT: case VIEW_CONVERT_EXPR: case SAVE_EXPR: - case GIMPLE_MODIFY_STMT: - return loc_descriptor_from_tree_1 (GENERIC_TREE_OPERAND (loc, 0), - want_address); + case MODIFY_EXPR: + return loc_descriptor_from_tree_1 (TREE_OPERAND (loc, 0), want_address); case COMPONENT_REF: case BIT_FIELD_REF: @@ -10442,7 +10441,7 @@ static tree reference_to_unused (tree * tp, int * walk_subtrees, void * data ATTRIBUTE_UNUSED) { - if (! EXPR_P (*tp) && ! GIMPLE_STMT_P (*tp) && ! CONSTANT_CLASS_P (*tp)) + if (! EXPR_P (*tp) && ! CONSTANT_CLASS_P (*tp)) *walk_subtrees = 0; if (DECL_P (*tp) && ! TREE_PUBLIC (*tp) && ! TREE_USED (*tp) |