Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=715ea010523239574277c9d8cc1e120ac22a0ff8

commit 715ea010523239574277c9d8cc1e120ac22a0ff8
Author: Elentir <elen...@frugalware.org>
Date:   Tue Feb 15 18:36:02 2011 +0100

gcc-4.5.2-7-arm

* add arm to archs

diff --git a/source/devel/gcc/FrugalBuild b/source/devel/gcc/FrugalBuild
index 845cd43..6189df4 100644
--- a/source/devel/gcc/FrugalBuild
+++ b/source/devel/gcc/FrugalBuild
@@ -24,7 +24,7 @@ url="http://gcc.gnu.org";
depends=('binutils>=2.18.50.0.8-3' 'glibc>=2.8-2' 'libelf' 'libmpc>=0.8.2-3')
provides=('c-compiler')
groups=('devel' 'devel-core')
-archs=('i686' 'x86_64' 'ppc')
+archs=('i686' 'x86_64' 'ppc' 'arm')
options=('scriptlet')
if Fuse $USE_SNAPSHOT; then
pkgver=4.5_20101118
@@ -37,8 +37,10 @@ if Fuse $USE_SNAPSHOT; then
else
gccver=$pkgver
up2date="lynx -dump http://ftp.gnu.org/pub/gnu/gcc/|grep gcc-.*/$|sed -n 
's|.*gcc-\(.*\)/|\1|;$ p'"
-       source=(http://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver/gcc-$gccver.tar.bz2)
-       signatures=($source.sig)
+       source=(http://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver/gcc-$gccver.tar.bz2 \
+            fix-gcc-arm-regression-44392.patch)
+       
signatures=(http://ftp.gnu.org/pub/gnu/gcc/gcc-$gccver/gcc-$gccver.tar.bz2.sig \
+                '')
fi

if Fuse $USE_SHARED; then
@@ -150,6 +152,10 @@ build()
export LDFLAGS="$LDFLAGS -Wl,--relax"
fi

+       if [ "$CARCH" == "arm" ]; then
+               Fconfopts="$Fconfopts --enable-softfloat \
+                       --with-float=soft"
+       fi

#http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45053
if [ "$CARCH" != "ppc" ]; then
diff --git a/source/devel/gcc/fix-gcc-arm-regression-44392.patch 
b/source/devel/gcc/fix-gcc-arm-regression-44392.patch
new file mode 100644
index 0000000..2f44859
--- /dev/null
+++ b/source/devel/gcc/fix-gcc-arm-regression-44392.patch
@@ -0,0 +1,12 @@
+diff -Naur gcc-4.5.2/gcc/config/arm/arm.md gcc-4.5.2/gcc/config/arm/arm.md
+--- gcc-4.5.2/gcc/config/arm/arm.md    2010-09-20 17:27:13.000000000 +0200
++++ gcc-4.5.2/gcc/config/arm/arm.md    2011-02-15 16:04:02.282000016 +0100
+@@ -11273,7 +11273,7 @@
+ (define_expand "bswapsi2"
+   [(set (match_operand:SI 0 "s_register_operand" "=r")
+       (bswap:SI (match_operand:SI 1 "s_register_operand" "r")))]
+-"TARGET_EITHER"
++"TARGET_EITHER && (arm_arch6 || ( !arm_arch6 && !optimize_size))"
+ "
+   if (!arm_arch6)
+     {
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to