This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: M68k config.
- To: egcs-patches@egcs.cygnus.com
- Subject: PATCH: M68k config.
- From: Andrew Haley <aph@pasanda.cygnus.co.uk>
- Date: 23 Aug 1999 12:22:51 -0000
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