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]
Other format: [Raw text]

add 68040 and 68060 multilibs


As discussed recently on the crossgcc list.

The main point is to avoid the instructions that the 040 and 060 do
not implement to reduce the number of traps needed to emulate them.

Tested with an alpha cross m68k-elf build.  There is no readily
available simulator, so no make check.


r~


        * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
        (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
        (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
        * config/m68k/t-m68kelf: Likewise.

Index: config/m68k/t-m68kbare
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/t-m68kbare,v
retrieving revision 1.4
diff -c -p -d -r1.4 t-m68kbare
*** t-m68kbare	2001/05/17 03:16:01	1.4
--- t-m68kbare	2002/01/24 01:18:45
*************** xfgnulib.c: $(srcdir)/config/m68k/fpgnul
*** 12,21 ****
  	echo '#define EXTFLOAT' > xfgnulib.c
  	cat $(srcdir)/config/m68k/fpgnulib.c >> xfgnulib.c
  
! MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32 m68881/msoft-float
  MULTILIB_DIRNAMES =
! MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332 m68020=mc68020 m68020=m68040 m68020=m68060
! MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881 m5200/msoft-float mcpu32/m68881 mcpu32/msoft-float
  
  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib
--- 12,21 ----
  	echo '#define EXTFLOAT' > xfgnulib.c
  	cat $(srcdir)/config/m68k/fpgnulib.c >> xfgnulib.c
  
! MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32/m68040/m68060 m68881/msoft-float
  MULTILIB_DIRNAMES =
! MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332 m68020=mc68020
! MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881 m5200/msoft-float mcpu32/m68881 mcpu32/msoft-float m68040/m68881 m68040/msoft-float m68060/m68881 m68060/msoft-float
  
  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib
Index: config/m68k/t-m68kelf
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68k/t-m68kelf,v
retrieving revision 1.4
diff -c -p -d -r1.4 t-m68kelf
*** t-m68kelf	2001/05/17 03:16:01	1.4
--- t-m68kelf	2002/01/24 01:18:45
*************** xfgnulib.c: $(srcdir)/config/m68k/fpgnul
*** 12,21 ****
  	echo '#define EXTFLOAT' > xfgnulib.c
  	cat $(srcdir)/config/m68k/fpgnulib.c >> xfgnulib.c
  
! MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32 m68881/msoft-float
  MULTILIB_DIRNAMES =
! MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332 m68020=mc68020 m68020=m68040 m68020=m68060
! MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881 m5200/msoft-float mcpu32/m68881 mcpu32/msoft-float
  
  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib
--- 12,21 ----
  	echo '#define EXTFLOAT' > xfgnulib.c
  	cat $(srcdir)/config/m68k/fpgnulib.c >> xfgnulib.c
  
! MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32/m68040/m68060 m68881/msoft-float
  MULTILIB_DIRNAMES =
! MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332 m68020=mc68020
! MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881 m5200/msoft-float mcpu32/m68881 mcpu32/msoft-float m68040/m68881 m68040/msoft-float m68060/m68881 m68060/msoft-float
  
  LIBGCC = stmp-multilib
  INSTALL_LIBGCC = install-multilib


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