diff options
author | Alan Modra <amodra@gmail.com> | 2002-05-23 10:12:04 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-05-23 10:12:04 +0000 |
commit | 69108c1f4363c8e7e4088d618da6837d4b5d1e00 (patch) | |
tree | 82a29c97494cc9d4dba7eaa230bb37f8edf07522 /gas/config | |
parent | 68b2fc7af6c5303cbe64d9df581ade294975fa69 (diff) | |
download | gdb-69108c1f4363c8e7e4088d618da6837d4b5d1e00.zip gdb-69108c1f4363c8e7e4088d618da6837d4b5d1e00.tar.gz gdb-69108c1f4363c8e7e4088d618da6837d4b5d1e00.tar.bz2 |
* config/tc-alpha.c (assemble_tokens): Protect use of
ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-alpha.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index e44877d..ab2d40b 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -2648,13 +2648,16 @@ assemble_tokens (opname, tok, ntok, local_macros_on) int cpumatch = 1; bfd_reloc_code_real_type reloc = BFD_RELOC_UNUSED; +#ifdef RELOC_OP_P /* If a user-specified relocation is present, this is not a macro. */ if (ntok && USER_RELOC_P (tok[ntok - 1].X_op)) { reloc = ALPHA_RELOC_TABLE (tok[ntok - 1].X_op)->reloc; ntok--; } - else if (local_macros_on) + else +#endif + if (local_macros_on) { macro = ((const struct alpha_macro *) hash_find (alpha_macro_hash, opname)); |