Fix m68k-elf coldfire run-time address error for tablejumps.

* m68kelf.h (ASM_RETURN_CASE_JUMP): Add 5200 support.

From-SVN: r25288
This commit is contained in:
Jim Wilson 1999-02-18 16:00:12 +00:00 committed by Jim Wilson
parent 6de1e2a978
commit 2d37187d57
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Feb 18 15:52:49 1999 Jim Wilson <wilson@cygnus.com>
* m68kelf.h (ASM_RETURN_CASE_JUMP): Add 5200 support.
1999-02-18 18:32 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cpplib.c: Kill define of STDC_VALUE. Don't include output.h

View File

@ -73,7 +73,13 @@ Boston, MA 02111-1307, USA. */
/* config/m68k.md has an explicit reference to the program counter,
prefix this by the register prefix. */
#define ASM_RETURN_CASE_JUMP return "jmp %%pc@(2,%0:w)"
#define ASM_RETURN_CASE_JUMP \
do { \
if (TARGET_5200) \
return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \
else \
return "jmp %%pc@(2,%0:w)"; \
} while (0)
/* How to refer to registers in assembler output.
This sequence is indexed by compiler's hard-register-number.