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]

PATCH: M68k config.


This patch forces both COFF and ELF versions of 68k gcc to use gas
syntax.  This makes gcc generate jbsr (relative) rather than jsr
(absolute) subroutine call insns.  This used to be gcc's default
behaviour, and some embedded users require it.

OK?

Andrew.

Index: gcc/config/m68k/m68k-coff.h
===================================================================
RCS file: /cvs/egcs/egcs/gcc/config/m68k/m68k-coff.h,v
retrieving revision 1.2
diff -2 -c -r1.2 m68k-coff.h
*** m68k-coff.h	1998/12/16 21:06:53	1.2
--- m68k-coff.h	1999/08/23 12:22:20
***************
*** 21,24 ****
--- 21,27 ----
  
  #define MOTOROLA	/* Use Motorola syntax rather than MIT.  */
+ #ifndef  USE_GAS  /* forces jsbr instead of jsr.  */
+ #define  USE_GAS
+ #endif
  
  #include "m68k/m68k-none.h"
Index: gcc/config/m68k/m68kelf.h
===================================================================
RCS file: /cvs/egcs/egcs/gcc/config/m68k/m68kelf.h,v
retrieving revision 1.6
diff -2 -c -r1.6 m68kelf.h
*** m68kelf.h	1999/06/21 09:42:48	1.6
--- m68kelf.h	1999/08/23 12:22:20
***************
*** 29,34 ****
  #define MOTOROLA                /* Use MOTOROLA syntax.  */
  #endif
! #ifdef  USE_GAS  /* when present, forces jsbr instead of jsr.  */
! #undef  USE_GAS
  #endif
  
--- 29,34 ----
  #define MOTOROLA                /* Use MOTOROLA syntax.  */
  #endif
! #ifndef  USE_GAS  /* forces jsbr instead of jsr.  */
! #define  USE_GAS
  #endif
  

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