summaryrefslogtreecommitdiffstats
path: root/patches/glibc-2.5
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2006-10-18 08:02:17 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2006-10-18 08:02:17 +0000
commit82b52cd08003acc2d926d32e2fff6a3a6a9307e4 (patch)
treea4e0b6d46fc17cdcf50e02b046500ebf4e08645a /patches/glibc-2.5
parentad08fdda99315de15d32fdfd58108d55e628eab9 (diff)
downloadOSELAS.Toolchain-82b52cd08003acc2d926d32e2fff6a3a6a9307e4.tar.gz
OSELAS.Toolchain-82b52cd08003acc2d926d32e2fff6a3a6a9307e4.tar.xz
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@1086 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'patches/glibc-2.5')
-rw-r--r--patches/glibc-2.5/generic/oe/arm-longlong.patch62
-rw-r--r--patches/glibc-2.5/generic/series-oe3
2 files changed, 65 insertions, 0 deletions
diff --git a/patches/glibc-2.5/generic/oe/arm-longlong.patch b/patches/glibc-2.5/generic/oe/arm-longlong.patch
new file mode 100644
index 0000000..a8e529f
--- /dev/null
+++ b/patches/glibc-2.5/generic/oe/arm-longlong.patch
@@ -0,0 +1,62 @@
+Index: glibc-2.5/stdlib/longlong.h
+===================================================================
+--- glibc-2.5.orig/stdlib/longlong.h
++++ glibc-2.5/stdlib/longlong.h
+@@ -205,6 +205,14 @@ UDItype __umulsidi3 (USItype, USItype);
+ "rI" ((USItype) (bh)), \
+ "r" ((USItype) (al)), \
+ "rI" ((USItype) (bl)) __CLOBBER_CC)
++/* v3m and all higher arches have long multiply support. */
++#if !defined(__ARM_ARCH_2__) && !defined(__ARM_ARCH_3__)
++#define umul_ppmm(xh, xl, a, b) \
++ __asm__ ("umull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
++#define UMUL_TIME 5
++#define smul_ppmm(xh, xl, a, b) \
++ __asm__ ("smull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
++#else
+ #define umul_ppmm(xh, xl, a, b) \
+ {register USItype __t0, __t1, __t2; \
+ __asm__ ("%@ Inlined umul_ppmm\n" \
+@@ -226,7 +234,13 @@ UDItype __umulsidi3 (USItype, USItype);
+ : "r" ((USItype) (a)), \
+ "r" ((USItype) (b)) __CLOBBER_CC );}
+ #define UMUL_TIME 20
++#endif
+ #define UDIV_TIME 100
++#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__)
++#define count_leading_zeros(COUNT,X) ((COUNT) = __builtin_clz (X))
++#define COUNT_LEADING_ZEROS_0 32
++#endif
++
+ #endif /* __arm__ */
+
+ #if defined (__hppa) && W_TYPE_SIZE == 32
+Index: glibc-2.5/ports/sysdeps/arm/mp_clz_tab.c
+===================================================================
+--- /dev/null
++++ glibc-2.5/ports/sysdeps/arm/mp_clz_tab.c
+@@ -0,0 +1,24 @@
++/* __clz_tab -- support for longlong.h
++ Copyright (C) 2004 Free Software Foundation, Inc.
++ This file is part of the GNU C Library.
++
++ The GNU C Library is free software; you can redistribute it and/or
++ modify it under the terms of the GNU Lesser General Public
++ License as published by the Free Software Foundation; either
++ version 2.1 of the License, or (at your option) any later version.
++
++ The GNU C Library is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ Lesser General Public License for more details.
++
++ You should have received a copy of the GNU Lesser General Public
++ License along with the GNU C Library; if not, write to the Free
++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
++ 02111-1307 USA. */
++
++#if defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || defined(__ARM_ARCH_5TE__)
++/* Nothing required. */
++#else
++#include <stdlib/mp_clz_tab.c>
++#endif
diff --git a/patches/glibc-2.5/generic/series-oe b/patches/glibc-2.5/generic/series-oe
new file mode 100644
index 0000000..393cf96
--- /dev/null
+++ b/patches/glibc-2.5/generic/series-oe
@@ -0,0 +1,3 @@
+sysdeps_unix_sysv_linux_getcwd_c-MAX.diff
+make-install-lib-all.patch
+oe/arm-longlong.patch