summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-10-23 11:00:24 +0100
committerPádraig Brady <P@draigBrady.com>2012-10-23 13:03:08 +0100
commit585c9873677670cec89af0514920c33b2fbf7804 (patch)
tree6cb75169c5e7dc2a2803ae98f44426582083decf
parent15794eab5ac3e641661694e72a3065eef580b226 (diff)
downloadcoreutils-585c9873677670cec89af0514920c33b2fbf7804.tar.xz
build: avoid build failure on some sparc systems
* src/longlong.h: Restrict some sparc assembly variants to sparc V9. This was seen to be an issue with newer sparc systems with default gcc CPU options.
-rw-r--r--src/longlong.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/longlong.h b/src/longlong.h
index 510f40ef2..173afb920 100644
--- a/src/longlong.h
+++ b/src/longlong.h
@@ -1745,7 +1745,7 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype);
#endif /* udiv_qrnnd */
#endif /* __sparc__ */
-#if defined (__sparc__) && W_TYPE_SIZE == 64
+#if (defined (__sparc_v9) || defined (__sparc_v9__)) && W_TYPE_SIZE == 64
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
__asm__ ( \
"addcc %r4,%5,%1\n" \