[PATCH] longlong.h: Fix obsolete ARC asm constraints

Vlad Zakharov zakhar at synopsys.com
Wed Aug 17 15:08:49 UTC 2016


# HG changeset patch
# User Vlad Zakharov <vzakhar at synopsys.com>
# Date 1471440660 -10800
#      Wed Aug 17 16:31:00 2016 +0300
# Node ID b21b1bc10f2221d6c9619c6e70fa1961d5887b80
# Parent  31d28753a4e167fa571268408d7ba16890f2cb9e
longlong.h: Fix obsolete ARC asm constraints

We replace obsolete "J" constraint with "Cal" constraint.

diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-08-17  Vlad Zakharov <vzakhar at synopsys.com>
+	* longlong.h (add_ssaaaa): Replace obsolete 'J'	constraint with
+	'Cal' constraint for ARC.
+	(sub_ddmmss): Likewise.
+
 2015-04-07  Marc Glisse  <marc.glisse at inria.fr>
 
 	* gmp-h.in (__GMP_NOTHROW): Prefer noexcept to throw().
diff --git a/longlong.h b/longlong.h
--- a/longlong.h
+++ b/longlong.h
@@ -424,17 +424,17 @@
 	   : "=r" (sh),							\
 	     "=&r" (sl)							\
 	   : "r"  ((USItype) (ah)),					\
-	     "rIJ" ((USItype) (bh)),					\
+	     "rICal" ((USItype) (bh)),					\
 	     "%r" ((USItype) (al)),					\
-	     "rIJ" ((USItype) (bl)))
+	     "rICal" ((USItype) (bl)))
 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
   __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3"			\
 	   : "=r" (sh),							\
 	     "=&r" (sl)							\
 	   : "r" ((USItype) (ah)),					\
-	     "rIJ" ((USItype) (bh)),					\
+	     "rICal" ((USItype) (bh)),					\
 	     "r" ((USItype) (al)),					\
-	     "rIJ" ((USItype) (bl)))
+	     "rICal" ((USItype) (bl)))
 #endif
 
 #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \


More information about the gmp-devel mailing list