diff options
author | Jeff Law <law@redhat.com> | 1993-11-02 06:10:52 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1993-11-02 06:10:52 +0000 |
commit | 009dc5e1e51a2770064f1072334900c5b995b0df (patch) | |
tree | c39acf703a0faeb0e4343fba0a2d4c0fded2645e /gas/expr.c | |
parent | Remove infrun.hacked.c. I just looked at the diff, and don't see any (diff) | |
download | binutils-gdb-009dc5e1e51a2770064f1072334900c5b995b0df.tar.gz binutils-gdb-009dc5e1e51a2770064f1072334900c5b995b0df.tar.bz2 binutils-gdb-009dc5e1e51a2770064f1072334900c5b995b0df.zip |
* struc-symbol.h: Add new "sy_used" field to the symbol structure.
* expr.c (operand): Set sy_used for any symbol used as an operand.
(expr): Likewise for any symbol used in an expression.
* config/tc-hppa.h (tc_frob_symbol): Define. Punt imported
symbols which are never used and absolute symbols which local scope.
Diffstat (limited to 'gas/expr.c')
-rw-r--r-- | gas/expr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/expr.c b/gas/expr.c index 838a847fcb6..84048599c3d 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -671,6 +671,10 @@ operand (expressionP) SKIP_WHITESPACE (); /*->1st char after operand. */ know (*input_line_pointer != ' '); + /* The PA port needs this information. */ + if (expressionP->X_add_symbol) + expressionP->X_add_symbol->sy_used = 1; + switch (expressionP->X_op) { default: @@ -980,6 +984,10 @@ expr (rank, resultP) op_left = op_right; } /* While next operator is >= this rank. */ + /* The PA port needs this information. */ + if (resultP->X_add_symbol) + resultP->X_add_symbol->sy_used = 1; + return resultP->X_op == O_constant ? absolute_section : retval; } |