diff options
author | Nick Clifton <nickc@redhat.com> | 2005-10-11 11:16:17 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-10-11 11:16:17 +0000 |
commit | 9497f5ac6bc10bdd65ea471787619bde1edca77d (patch) | |
tree | 7f36b3cb6f0d84b058dfba51242bd900edde9503 /gas/config/tc-sh.h | |
parent | 1334d4d50c52bc295dace4982442369838f478b3 (diff) | |
download | gdb-9497f5ac6bc10bdd65ea471787619bde1edca77d.zip gdb-9497f5ac6bc10bdd65ea471787619bde1edca77d.tar.gz gdb-9497f5ac6bc10bdd65ea471787619bde1edca77d.tar.bz2 |
This adjusts equate handling by
- allowing true forward references (which will always assume the referenced
symbols have at the point of use) through the new .eqv pseudo-op and the
new == operator
- disallowing changing .equiv-generated equates (so that the protection this
provides is both forward and backward)
- snapshotting equates when their value gets changed so that previous uses
don't get affected by the new value.
- allowing expressions in places where absolute expressions (or register
names) are needed which were not completely resolvable at the point of
their definition but which are fully resolvable at the point of use
In addition it fixes PR/288.
Diffstat (limited to 'gas/config/tc-sh.h')
-rw-r--r-- | gas/config/tc-sh.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h index 69b82b2..a812036 100644 --- a/gas/config/tc-sh.h +++ b/gas/config/tc-sh.h @@ -206,9 +206,10 @@ extern bfd_boolean sh_fix_adjustable (struct fix *); ((FIX)->fx_r_type == BFD_RELOC_32_PLT_PCREL \ || (sh_relax && SWITCH_TABLE (FIX))) -#define md_parse_name(name, exprP, nextcharP) \ - sh_parse_name ((name), (exprP), (nextcharP)) -int sh_parse_name (char const *name, expressionS *exprP, char *nextchar); +#define md_parse_name(name, exprP, mode, nextcharP) \ + sh_parse_name ((name), (exprP), (mode), (nextcharP)) +int sh_parse_name (char const *name, expressionS *exprP, + enum expr_mode mode, char *nextchar); #define TC_CONS_FIX_NEW(FRAG, OFF, LEN, EXP) \ sh_cons_fix_new ((FRAG), (OFF), (LEN), (EXP)) |