[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r4704 - in glibc-package/trunk/debian: . patches/mips



Author: aurel32
Date: 2011-06-04 15:36:40 +0000 (Sat, 04 Jun 2011)
New Revision: 4704

Added:
   glibc-package/trunk/debian/patches/mips/submitted-wordsize-clang.diff
Modified:
   glibc-package/trunk/debian/changelog
Log:
  * Add patches/mips/submitted-wordsize-clang.diff to make clang usable on
    mips/mipsel.  Closes: #601645.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2011-06-04 15:12:55 UTC (rev 4703)
+++ glibc-package/trunk/debian/changelog	2011-06-04 15:36:40 UTC (rev 4704)
@@ -42,6 +42,8 @@
     Closes: #622385.
   * Add patches/localedata/locale-sv_SE.diff to fix time format in sv_SE
     locale. Closes: #604125.
+  * Add patches/mips/submitted-wordsize-clang.diff to make clang usable on
+    mips/mipsel.  Closes: #601645.
 
   [ Steve Langasek ]
   * Tighten the dependency on dpkg to a multiarch aware version.

Added: glibc-package/trunk/debian/patches/mips/submitted-wordsize-clang.diff
===================================================================
--- glibc-package/trunk/debian/patches/mips/submitted-wordsize-clang.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/mips/submitted-wordsize-clang.diff	2011-06-04 15:36:40 UTC (rev 4704)
@@ -0,0 +1,24 @@
+2011-06-04  Aurelien Jarno  <aurelien@aurel32.net>
+
+	* sysdeps/mips/bits/wordsize.h(__WORDSIZE): Define from _MIPS_SZPTR
+	or __INTPTR_WIDTH__.
+
+diff --git a/sysdeps/mips/bits/wordsize.h b/sysdeps/mips/bits/wordsize.h
+index 06967e5..099dfdc 100644
+--- a/sysdeps/mips/bits/wordsize.h
++++ b/sysdeps/mips/bits/wordsize.h
+@@ -16,7 +16,13 @@
+    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+    02111-1307 USA.  */
+ 
+-#define __WORDSIZE	_MIPS_SZPTR
++#if defined (_MIPS_SZPTR)
++# define __WORDSIZE	_MIPS_SZPTR
++#elif defined (__INTPTR_WIDTH__)
++# define __WORDSIZE	__INTPTR_WIDTH__
++#else
++# error Cannot define __WORDSIZE
++#endif
+ #if _MIPS_SIM == _ABI64
+ # define __WORDSIZE_COMPAT32	1
+ #endif


Reply to: