This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gas compile error for target alpha-dec-vms
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Thu, 23 May 2002 19:41:33 +0930
- Subject: Re: gas compile error for target alpha-dec-vms
- References: <Pine.LNX.4.33.0204010110230.1013-100000@ace> <20020404044013.GR1042@bubble.sa.bigpond.net.au>
This has been hanging around my local tree for quite a while.
http://sources.redhat.com/ml/bug-binutils/2002-q2/msg00017.html
* config/tc-alpha.c (assemble_tokens): Protect use of
ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
Index: gas/config/tc-alpha.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-alpha.c,v
retrieving revision 1.39
diff -u -p -r1.39 tc-alpha.c
--- gas/config/tc-alpha.c 9 May 2002 13:12:57 -0000 1.39
+++ gas/config/tc-alpha.c 23 May 2002 00:04:48 -0000
@@ -2648,14 +2648,17 @@ assemble_tokens (opname, tok, ntok, loca
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));
--
Alan Modra
IBM OzLabs - Linux Technology Centre