bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gas compile error for target alpha-dec-vms


From: Alan Modra
Subject: Re: gas compile error for target alpha-dec-vms
Date: Thu, 4 Apr 2002 14:10:13 +0930
User-agent: Mutt/1.3.25i

On Mon, Apr 01, 2002 at 01:50:45AM +0200, address@hidden wrote:
> 
> in gas/config/tc-alpha.c on line 2654, ALPHA_RELOC_TABLE is undefined,
> which is defined on line 478, but only if RELOC_OP_P is set

Try the following.  I'm not sure whether alpha-dec-vms is actively
being supported.

Index: gas/config/tc-alpha.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-alpha.c,v
retrieving revision 1.38
diff -u -p -r1.38 tc-alpha.c
--- tc-alpha.c  2002/02/27 23:48:06     1.38
+++ tc-alpha.c  2002/04/04 04:35:01
@@ -2648,13 +2648,16 @@ 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]