diff options
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 572bfc9..87d92e8 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -9015,7 +9015,6 @@ loc_descriptor_from_tree_1 (tree loc, int want_address) { dw_loc_descr_ref ret, ret1; int have_address = 0; - int unsignedp = TYPE_UNSIGNED (TREE_TYPE (loc)); enum dwarf_location_atom op; /* ??? Most of the time we do not take proper care for sign/zero @@ -9159,6 +9158,7 @@ loc_descriptor_from_tree_1 (tree loc, int want_address) HOST_WIDE_INT bitsize, bitpos, bytepos; enum machine_mode mode; int volatilep; + int unsignedp = TYPE_UNSIGNED (TREE_TYPE (loc)); obj = get_inner_reference (loc, &bitsize, &bitpos, &offset, &mode, &unsignedp, &volatilep, false); @@ -9257,7 +9257,7 @@ loc_descriptor_from_tree_1 (tree loc, int want_address) goto do_binop; case RSHIFT_EXPR: - op = (unsignedp ? DW_OP_shr : DW_OP_shra); + op = (TYPE_UNSIGNED (TREE_TYPE (loc)) ? DW_OP_shr : DW_OP_shra); goto do_binop; case PLUS_EXPR: |