From 912e42451846d06b670b8e5ade91209a768086c8 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor <ian@airs.com>
Date: Wed, 24 Apr 1996 21:05:20 +0000
Subject: 	* config/tc-m68k.c (m68k_ip): Prevent attempts to use long
 offsets  	in 68000 mode.

---
 gas/ChangeLog        | 3 +++
 gas/config/tc-m68k.c | 3 +++
 2 files changed, 6 insertions(+)

(limited to 'gas')

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 3c114f5..b66ddcf 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
 Wed Apr 24 11:28:38 1996  Ian Lance Taylor  <ian@cygnus.com>
 
+	* config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
+ 	in 68000 mode.
+
 	* config/obj-coff.c (obj_coff_section): BFD_ASSEMBLER version:
 	call demand_empty_rest_of_line.  Non BFD_ASSEMBLER version:
 	correct handling of input line pointer, and call
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index 947e0aa..cd70be1 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -1743,6 +1743,9 @@ m68k_ip (instring)
 			   && cpu_of_arch (current_architecture) >= m68020)
 			  || opP->disp.size == SIZE_LONG)))
 		{
+		  if (cpu_of_arch (current_architecture) < m68020)
+		    opP->error =
+		      "displacement too large for this architecture; needs 68020 or higher";
 		  if (opP->reg == PC)
 		    tmpreg = 0x3B;	/* 7.3 */
 		  else
-- 
cgit v1.1