Multilib support for 68040
Glynn Smith
glynnsmith@belobox.com
Tue Jan 22 13:59:00 GMT 2002
> -----Original Message-----
> From: Peter Barada [mailto:pbarada@mail.wm.sps.mot.com]
> Sent: Tuesday, January 22, 2002 12:52 PM
> To: joel.sherrill@OARcorp.com
> Cc: aaron@frye.com; Glynn Smith; crossgcc@sourceware.cygnus.com
> Subject: Re: Multilib support for 68040
>
>
>
> >> On Mon, Jan 21, 2002 at 12:26:18PM -0800, Glynn Smith wrote:
> >> > I am using gcc 2.95.2 configured as a Cross m68k
> compiler hosted on
> >> > PPC-LINUX. The standard multi-lib support seems to be
> for 68000 68020
> >> > 68881 & soft-float.
> >>
> >> and cpu32 and m5200. :)
> >
> >And at least one person I know wants the 68060 added so you can avoid
> >generating instructions that it has to emulate.
>
> I'll assume that you configure with --target=m68k-elf
I am actually using -m68k-coff.
>
> You could modify gcc/config/m68k/t-m68kelf and change the following
> lines to build libgcc.a for -m68040 and -m68060, and convince the
> compiler to select it at link time:
There does not appear to be a t_m68k-coff file. Do I create one or use
one of the axisting ones? e.g. t-m68kbare
>
> MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32/m68040/m68060
> m68881/msoft-float
> MULTILIB_DIRNAMES =
> MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332
> m68020=mc68020 m68040=m68040 m68060=m68060
> MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881
> m5200/msoft-float mcpu32/m68881 mcpu32/msoft-float
> m68040/m68881 m68040/msoft-float m68080/m68881 m68060/msoft-float
>
> You'll have to run configure again, make clean; make; make install,
> and then:
>
> [pbarada: ~]> /tmp/crap/bin/m68k-elf-gcc -m68040
> -print-libgcc-file-name
> /tmp/crap/lib/gcc-lib/m68k-elf/3.1/m68040/libgcc.a
>
> Which means it will link in the -m68040 built version of libgcc.a...
>
> Of course its a whole 'nother story if the assembler code in libgcc.a
> isn't optimized for the 68040...
>
> --
> Peter Barada
> Peter.Barada@motorola.com
> Wizard 781-852-2768 (direct)
> WaveMark Solutions(wholly owned by Motorola) 781-270-0193 (fax)
>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list