This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[rfc,m68k] Cleanup m68k predefines longlong.h
- From: Bernardo Innocenti <bernie at develer dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Gunther Nikl <gni at gecko dot de>
- Date: Thu, 15 Jan 2004 03:59:01 +0100
- Subject: [rfc,m68k] Cleanup m68k predefines longlong.h
- Organization: Develer S.r.l.
Hello,
tests on unprefixed mc680x0 predefines are not strictly
needed because the prefixed versions are always present.
__mc68030__, __mc68040__ and __mc68060__ also imply
__mc68020__, so they're not needed.
Not tested at all, just wanted to make sure it looks
reasonable for you too. I'll add it to the next
testsuite run.
2004-01-15 Bernardo Innocenti <bernie@develer.com>
* longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
mcpu32): Remove redundant checks for implied target predefines.
diff -u -p -r1.39 longlong.h
--- gcc/longlong.h 21 Aug 2003 01:11:41 -0000 1.39
+++ gcc/longlong.h 15 Jan 2004 00:16:15 -0000
@@ -415,10 +415,7 @@ UDItype __umulsidi3 (USItype, USItype);
"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)
+/* The '020, '030, '040, '060 and CPU32 have 32x32->64 and 64/32->32q-32r. */
+#if defined (__mc68020__)
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("mulu%.l %3,%1:%0" \
: "=d" ((USItype) (w0)), \
@@ -519,11 +516,7 @@ UDItype __umulsidi3 (USItype, USItype);
/* The '020, '030, '040 and '060 have bitfield insns.
cpu32 disguises as a 68020, but lacks them. */
-#if ( defined (__mc68020__) || defined(mc68020) \
- || defined(__mc68030__) || defined(mc68030) \
- || defined(__mc68040__) || defined(mc68040) \
- || defined(__mc68060__) || defined(mc68060) ) \
- && !defined(__mcpu32__)
+#if ( defined (__mc68020__) && !defined(__mcpu32__)
#define count_leading_zeros(count, x) \
__asm__ ("bfffo %1{%b2:%b2},%0" \
: "=d" ((USItype) (count)) \
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/