This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Sync longlong.h with GCC to fix a sparc regression.


This fixes a 64-bit sparc regression added by my changes synced over
the other day.  I committed the fix to gcc mainline first, and this
sync's it over to glibc.

Committed to master.

	* stdlib/longlong.h: Updated from GCC.
---
 ChangeLog         |    4 ++++
 stdlib/longlong.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index adf6c88..e207e4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-06-03  David S. Miller  <davem@davemloft.net>
+
+	* stdlib/longlong.h: Updated from GCC.
+
 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
 
 	[BZ #14042]
diff --git a/stdlib/longlong.h b/stdlib/longlong.h
index ad42907..0427718 100644
--- a/stdlib/longlong.h
+++ b/stdlib/longlong.h
@@ -1343,7 +1343,7 @@ UDItype __umulsidi3 (USItype, USItype);
     __asm__ ("subcc\t%r5,%6,%1\n\t"					\
 	     "sub\t%r3,%4,%0\n\t"					\
 	     "movcs\t%%xcc, 1, %2\n\t"					\
-	     "add\t%0, %2, %0"						\
+	     "sub\t%0, %2, %0"						\
 	     : "=r" ((UDItype)(sh)),				      	\
 	       "=&r" ((UDItype)(sl)),				      	\
 	       "+r" (__carry)				      		\
-- 
1.7.10


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]