summaryrefslogtreecommitdiff
path: root/gcc/longlong.h
diff options
context:
space:
mode:
authorbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-16 04:12:25 +0000
committerbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-16 04:12:25 +0000
commit8e80b4520e259086551b61242488a1c9f1000f47 (patch)
tree45364d7fffff828f2ab90d8eb69bf68535809e99 /gcc/longlong.h
parentf9854e90ac189d83fba9b71eb51de6cf23e558c3 (diff)
downloadgcc-8e80b4520e259086551b61242488a1c9f1000f47.tar.gz
* config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
* longlong.h: Make code 68060 clean when compiling for m68060. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79524 138bc75d-0d04-0410-961f-82ee72b054a4
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 03150201103..0f5d05ffe2d 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)) \