mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 19:27:40 +08:00
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:
parent
6de1e2a978
commit
2d37187d57
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user