This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v6 1/5] x86-64: Intel64 adjustments for insns dealing with far pointers


On 12.02.2020 11:05, Jan Beulich wrote:
> --- a/gas/config/tc-i386.c
> +++ b/gas/config/tc-i386.c
> @@ -5827,7 +5827,7 @@ match_template (char mnem_suffix)
>  	  break;
>  	case intel64:
>  	  /* -mintel64: Don't accept AMD64.  */
> -	  if (t->opcode_modifier.isa64 == AMD64)
> +	  if (t->opcode_modifier.isa64 == AMD64 && flag_code == CODE_64BIT)
>  	    continue;
>  	  break;
>  	}

An alternative would of course be to wrap the entire switch()
in "if (flag_code == CODE_64BIT)". I've chosen the variant
above simply to be as un-intrusive as possible.

Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]