This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] mc68060 code generation in libgcc
- From: Bernardo Innocenti <bernie at develer dot com>
- To: Richard Zidlicky <rz at linux-m68k dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Dec 2003 01:51:31 +0100
- Subject: Re: [patch] mc68060 code generation in libgcc
- Organization: Develer S.r.l.
- References: <20031228171640.GA3876@linux-m68k.org>
Richard Zidlicky wrote:
--- gcc-3.4-20031210/gcc/longlong.h.rz 2003-08-21 03:11:41.000000000 +0200
+++ gcc-3.4-20031210/gcc/longlong.h 2003-12-25 20:02:06.000000000 +0100
@@ -415,10 +415,11 @@
"g" ((USItype) (bl)))
/* The '020, '030, '040 and CPU32 have 32x32->64 and 64/32->32q-32r. */
-#if defined (__mc68020__) || defined(mc68020) \
- || defined(__mc68030__) || defined(mc68030) \
- || defined(__mc68040__) || defined(mc68040) \
- || defined(__mcpu32__) || defined(mcpu32)
+#if !defined(__mc68060__) && !defined(mc68060) && \
+ (defined (__mc68020__) || defined(mc68020) \
+ || defined(__mc68030__) || defined(mc68030) \
+ || defined(__mc68040__) || defined(mc68040) \
+ || defined(__mcpu32__) || defined(mcpu32))
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("mulu%.l %3,%1:%0" \
: "=d" ((USItype) (w0)), \
The unprefixed predefines are only present when -ansi
isn't passed, the others are *always* present.
So I think testing for the ANSI versions of the
symbols only would suffice.
Even though it was already done like this before,
this is our opportunity to clean up this thing.
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/