* config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
authorIan Lance Taylor <ian@airs.com>
Wed, 24 Apr 1996 21:05:20 +0000 (21:05 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 24 Apr 1996 21:05:20 +0000 (21:05 +0000)
  in 68000 mode.

gas/ChangeLog
gas/config/tc-m68k.c

index 3c114f5a593e5a2bc92bd3e0fb3bf2c646e0490c..b66ddcf1103f21fff8250f348d99dc82410ea1af 100644 (file)
@@ -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
index 947e0aab827958bafbfb5c971c71a37e9a4d1f5f..cd70be1207d2784772dfb3335761e60977009330 100644 (file)
@@ -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