From: Jason Eckhardt Date: Tue, 5 Aug 2003 22:58:00 +0000 (+0000) Subject: 2003-08-05 Jason Eckhardt X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ea0549d55b3628448ea84809ce3bb54ed6724ba;p=binutils-gdb.git 2003-08-05 Jason Eckhardt * config/tc-i860.c (s_dual): Accept .dual directive only in the Intel syntax mode. (s_enddual): Likewise for .enddual. (s_atmp): Likewise for .atmp. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a6d2d489887..9e1d4027243 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2003-08-05 Jason Eckhardt + + * config/tc-i860.c (s_dual): Accept .dual directive only in + the Intel syntax mode. + (s_enddual): Likewise for .enddual. + (s_atmp): Likewise for .atmp. + 2003-08-04 Alan Modra * config/tc-i386.c (i386_intel_operand): Always call i386_index_check diff --git a/gas/config/tc-i860.c b/gas/config/tc-i860.c index 2488584f18e..2418997e874 100644 --- a/gas/config/tc-i860.c +++ b/gas/config/tc-i860.c @@ -119,14 +119,20 @@ static enum dual dual_mode = DUAL_OFF; static void s_dual (int ignore ATTRIBUTE_UNUSED) { - dual_mode = DUAL_ON; + if (target_intel_syntax) + dual_mode = DUAL_ON; + else + as_bad (_("Directive .dual available only with -mintel-syntax option")); } /* Handle ".enddual" directive. */ static void s_enddual (int ignore ATTRIBUTE_UNUSED) { - dual_mode = DUAL_OFF; + if (target_intel_syntax) + dual_mode = DUAL_OFF; + else + as_bad (_("Directive .enddual available only with -mintel-syntax option")); } /* Temporary register used when expanding assembler pseudo operations. */ @@ -135,7 +141,15 @@ static int atmp = 31; static void s_atmp (int ignore ATTRIBUTE_UNUSED) { - register int temp; + int temp; + + if (! target_intel_syntax) + { + as_bad (_("Directive .atmp available only with -mintel-syntax option")); + demand_empty_rest_of_line (); + return; + } + if (strncmp (input_line_pointer, "sp", 2) == 0) { input_line_pointer += 2;