diff options
author | Jason Eckhardt <jle@rice.edu> | 2003-08-05 22:58:00 +0000 |
---|---|---|
committer | Jason Eckhardt <jle@rice.edu> | 2003-08-05 22:58:00 +0000 |
commit | 5ea0549d55b3628448ea84809ce3bb54ed6724ba (patch) | |
tree | 88a192dc5a12badc293531e27c8e6194b9ec2ed9 /gas/config/tc-i860.c | |
parent | d303380bd97689a67e841b0f6bc40e6871610393 (diff) | |
download | gdb-5ea0549d55b3628448ea84809ce3bb54ed6724ba.zip gdb-5ea0549d55b3628448ea84809ce3bb54ed6724ba.tar.gz gdb-5ea0549d55b3628448ea84809ce3bb54ed6724ba.tar.bz2 |
2003-08-05 Jason Eckhardt <jle@rice.edu>
* 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.
Diffstat (limited to 'gas/config/tc-i860.c')
-rw-r--r-- | gas/config/tc-i860.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gas/config/tc-i860.c b/gas/config/tc-i860.c index 2488584..2418997 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; |