From 40f3c6f84f6f8ddcfb513da9833601affc2f087c Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 16 Apr 1998 18:51:58 +0000 Subject: [PATCH] * config/tc-dvp.c (unpackloc_sym): Delete. All uses deleted. --- gas/ChangeLog | 6 ++++++ gas/config/tc-dvp.c | 44 ++++---------------------------------------- 2 files changed, 10 insertions(+), 40 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 8a565efd932..e667e593609 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +start-sanitize-sky +Thu Apr 16 11:48:18 1998 Doug Evans + + * config/tc-dvp.c (unpackloc_sym): Delete. All uses deleted. + +end-sanitize-sky Wed Apr 15 15:17:27 1998 Richard Henderson * symbols.c (resolve_symbol_value) [O_symbol]: Also store the symbol diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index 380dbca55dc..94747333155 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -154,8 +154,6 @@ static symbolS *vif_data_end; /* Special symbol $.mpgloc. The value is in bytes. */ static symbolS *mpgloc_sym; -/* Special symbol $.unpackloc. */ -static symbolS *unpackloc_sym; /* GIF insn support. */ /* Type of insn. */ @@ -291,7 +289,6 @@ md_begin () /* Create special symbols. */ mpgloc_sym = expr_build_uconstant (0); - unpackloc_sym = expr_build_uconstant (0); } /* We need to keep a list of fixups. We can't simply generate them as @@ -696,20 +693,10 @@ assemble_vif (str) insn_frag = frag_now; /* Put a symbol at the start of data. $.unpackloc calculations use it. */ + /* ??? $.unpackloc is gone. Is this also used for data length + verification? */ vif_data_start = create_colon_label (STO_DVP_VIF, LOCAL_LABEL_PREFIX, unique_name ("unpack")); - - /* Get the value of unpackloc. If it wasn't '*' update - $.unpackloc. */ - { - int unpackloc = vif_get_unpackloc (); - if (unpackloc != -1) - { - unpackloc_sym->sy_value.X_op = O_constant; - unpackloc_sym->sy_value.X_add_number = unpackloc; - unpackloc_sym->sy_value.X_unsigned = 1; - } - } } else { @@ -1435,19 +1422,6 @@ md_operand (expressionP) expressionP->X_add_symbol = mpgloc_sym; expressionP->X_add_number = 0; - /* Advance over the '*'. */ - ++input_line_pointer; - } - /* Check if this is a '*' for unpackloc. */ - else if (cur_opcode - && (cur_opcode->flags & VIF_OPCODE_UNPACK) != 0 - && (cur_operand->flags & DVP_OPERAND_UNPACK_ADDRESS) != 0 - && *input_line_pointer == '*') - { - expressionP->X_op = O_symbol; - expressionP->X_add_symbol = unpackloc_sym; - expressionP->X_add_number = 0; - /* Advance over the '*'. */ ++input_line_pointer; } @@ -2831,23 +2805,13 @@ s_endunpack (internal_p) } /* Record in the end data symbol the current location. */ + /* ??? $.unpackloc is gone. Is this also used for data length + verification? */ if (now_seg != S_GET_SEGMENT (vif_data_end)) as_bad (".endunpack in different section"); vif_data_end->sy_frag = frag_now; S_SET_VALUE (vif_data_end, (valueT) frag_now_fix ()); - /* Update $.UnpackLoc. */ - { - symbolS *s; - s = expr_build_binary (O_subtract, vif_data_end, vif_data_start); - /* Round up to next quadword boundary. */ - /* FIXME: This isn't correct, the size of the input data is not the - size of the output data. Someone else can fix this. */ - s = expr_build_binary (O_add, s, expr_build_uconstant (15)); - s = expr_build_binary (O_divide, s, expr_build_uconstant (16)); - unpackloc_sym = expr_build_binary (O_add, unpackloc_sym, s); - } - /* Round up to next word boundary. */ frag_align (2, 0, 0); -- 2.30.2