summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-02-20 23:08:01 +0000
committerdim <dim@FreeBSD.org>2014-02-20 23:08:01 +0000
commit01eb3a08785f0ee56c68562c5d9392e0e8b2287f (patch)
treef8270c9c6b31225ac8b0f30609b33efe3ff5976f /contrib/gcc
parent2a39777634b76441bb54ced4fe11c74693726349 (diff)
downloadFreeBSD-src-01eb3a08785f0ee56c68562c5d9392e0e8b2287f.zip
FreeBSD-src-01eb3a08785f0ee56c68562c5d9392e0e8b2287f.tar.gz
Similar to r211505 for x86, remove unneeded casts in inline assembly for
sparc64 from contrib/gcc/longlong.h, which are considered "heinous" GNU extensions by clang.
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/longlong.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/gcc/longlong.h b/contrib/gcc/longlong.h
index f91eb52..304ee8d 100644
--- a/contrib/gcc/longlong.h
+++ b/contrib/gcc/longlong.h
@@ -1086,8 +1086,8 @@ UDItype __umulsidi3 (USItype, USItype);
"bcs,a,pn %%xcc, 1f\n\t" \
"add %0, 1, %0\n" \
"1:" \
- : "=r" ((UDItype)(sh)), \
- "=&r" ((UDItype)(sl)) \
+ : "=r" (sh), \
+ "=&r" (sl) \
: "%rJ" ((UDItype)(ah)), \
"rI" ((UDItype)(bh)), \
"%rJ" ((UDItype)(al)), \
@@ -1100,8 +1100,8 @@ UDItype __umulsidi3 (USItype, USItype);
"bcs,a,pn %%xcc, 1f\n\t" \
"sub %0, 1, %0\n\t" \
"1:" \
- : "=r" ((UDItype)(sh)), \
- "=&r" ((UDItype)(sl)) \
+ : "=r" (sh), \
+ "=&r" (sl) \
: "rJ" ((UDItype)(ah)), \
"rI" ((UDItype)(bh)), \
"rJ" ((UDItype)(al)), \
@@ -1133,8 +1133,8 @@ UDItype __umulsidi3 (USItype, USItype);
"sllx %3,32,%3\n\t" \
"add %1,%3,%1\n\t" \
"add %5,%2,%0" \
- : "=r" ((UDItype)(wh)), \
- "=&r" ((UDItype)(wl)), \
+ : "=r" (wh), \
+ "=&r" (wl), \
"=&r" (tmp1), "=&r" (tmp2), "=&r" (tmp3), "=&r" (tmp4) \
: "r" ((UDItype)(u)), \
"r" ((UDItype)(v)) \
OpenPOWER on IntegriCloud