diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-04-24 21:05:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-04-24 21:05:20 +0000 |
commit | 912e42451846d06b670b8e5ade91209a768086c8 (patch) | |
tree | c06fcf58d401d61ded3fc83f114c4d3a41b8205d /gas/config | |
parent | 73e75264a11930e4106608d7c45fc04f417d6936 (diff) | |
download | gdb-912e42451846d06b670b8e5ade91209a768086c8.zip gdb-912e42451846d06b670b8e5ade91209a768086c8.tar.gz gdb-912e42451846d06b670b8e5ade91209a768086c8.tar.bz2 |
* config/tc-m68k.c (m68k_ip): Prevent attempts to use long offsets
in 68000 mode.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-m68k.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |