This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
non-68060 instructions in longlong.h
- To: egcs-bugs at cygnus dot com
- Subject: non-68060 instructions in longlong.h
- From: Ingolf Koch <ingolf at maus dot rz dot uni-jena dot de>
- Date: Sun, 5 Apr 1998 20:34:43 +0200 (MEST)
- Reply-To: ingolf at mipool dot uni-jena dot de (Ingolf Koch)
Hi,
building libgcc.a for a machine with a motorola 68060
processor (m68k-cbm-netbsd1.3), longlong.h generates
asm macros (at least) for umul_ppmm containing machine
instructions which have to be emulated on 060s. This
makes for example muldi3 terribly slow.
As I do not have knowledge about 060 instructions, I cannot
tell which one is offending or give a fix (see below). I only
see that there must be some emulation.
A reason for this could be that the specs file for
m68k-cbm-netbsd1.3 contains:
*predefines:
-Dunix -Dm68k -Dmc68000 -Dmc68020 -D__NetBSD__ -Asystem(unix)
-Asystem(NetBSD) -Acpu(m68k) -Amachine(m68k)
So longlong.h thinks we are compiling for a plain 68k
or 68020.
Maybe a -m68060 option to the compiler should automatically
add -Dmc68060, and longlong.h should check for this.
Regards
--
Ingolf Koch http://www.minet.uni-jena.de/~ingolf/
FSU Jena, Institut fuer Angewandte Mathematik, 07740 Jena