aboutsummaryrefslogtreecommitdiff
path: root/gcc/longlong.h
diff options
context:
space:
mode:
authorRichard Zidlicky <rz@linux-m68k.org>2004-03-16 04:12:25 +0000
committerBernardo Innocenti <bernie@gcc.gnu.org>2004-03-16 05:12:25 +0100
commit3704aae954e07db1b797e5cc1750bcf4f2a88cc1 (patch)
tree45364d7fffff828f2ab90d8eb69bf68535809e99 /gcc/longlong.h
parent8ac658b645c79cfb7434d55a617fe974c5b7cbe9 (diff)
downloadgcc-3704aae954e07db1b797e5cc1750bcf4f2a88cc1.zip
gcc-3704aae954e07db1b797e5cc1750bcf4f2a88cc1.tar.gz
gcc-3704aae954e07db1b797e5cc1750bcf4f2a88cc1.tar.bz2
config.gcc, linux.h: Implement with-cpu for m68k-linux.
* config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux. * longlong.h: Make code 68060 clean when compiling for m68060. From-SVN: r79524
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r--gcc/longlong.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index 0315020..0f5d05f 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -415,7 +415,7 @@ UDItype __umulsidi3 (USItype, USItype);
"g" ((USItype) (bl)))
/* The '020, '030, '040, '060 and CPU32 have 32x32->64 and 64/32->32q-32r. */
-#if defined (__mc68020__)
+#if (defined (__mc68020__) && !defined (__mc68060__))
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("mulu%.l %3,%1:%0" \
: "=d" ((USItype) (w0)), \
@@ -439,8 +439,8 @@ UDItype __umulsidi3 (USItype, USItype);
"1" ((USItype) (n1)), \
"dmi" ((USItype) (d)))
-#else /* not mc68020 */
-#if defined(__mcoldfire__)
+#elif defined (__mcoldfire__) /* not mc68020 */
+
#define umul_ppmm(xh, xl, a, b) \
__asm__ ("| Inlined umul_ppmm\n" \
" move%.l %2,%/d0\n" \
@@ -511,12 +511,12 @@ UDItype __umulsidi3 (USItype, USItype);
: "d0", "d1", "d2", "d3", "d4")
#define UMUL_TIME 100
#define UDIV_TIME 400
-#endif /* not ColdFire */
+
#endif /* not mc68020 */
/* The '020, '030, '040 and '060 have bitfield insns.
cpu32 disguises as a 68020, but lacks them. */
-#if defined (__mc68020__) && !defined(__mcpu32__)
+#if defined (__mc68020__) && !defined (__mcpu32__)
#define count_leading_zeros(count, x) \
__asm__ ("bfffo %1{%b2:%b2},%0" \
: "=d" ((USItype) (count)) \