This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

m68kelf.h (ASM_RETURN_CASE_JUMP): Add 5200 support.


I have checked in this patch.

This fixes a bug with the -m5200 (coldfire) support.  tablejumps would
get an address error at run time, because coldfire does not have word index
sizes, it only has long index sizes.  This just copies over existing code
from other m68k target files to fix the problem.

Thu Feb 18 15:52:49 1999  Jim Wilson  <wilson@cygnus.com>

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

Index: m68kelf.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/m68k/m68kelf.h,v
retrieving revision 1.12
diff -p -r1.12 m68kelf.h
*** m68kelf.h	1998/07/07 21:37:22	1.12
--- m68kelf.h	1999/02/18 05:30:21
*************** the Free Software Foundation, 675 Mass A
*** 73,79 ****
  /* 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)"
  
  /* How to refer to registers in assembler output.
     This sequence is indexed by compiler's hard-register-number.
--- 73,85 ----
  /* config/m68k.md has an explicit reference to the program counter,
     prefix this by the register prefix.  */
  
! #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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]