mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 19:26:50 +00:00
update to gcc-4.4.0 mpfr-2.4.1 gmp-4.3.0 libproxy-svn-334, variuos fixes
This commit is contained in:
parent
9c21c6e9d7
commit
f75bc56cfd
@ -10,6 +10,7 @@ $SCRIPTS/install zlib
|
|||||||
$SCRIPTS/install jpeg
|
$SCRIPTS/install jpeg
|
||||||
$SCRIPTS/install libpng
|
$SCRIPTS/install libpng
|
||||||
#$SCRIPTS/install libX11
|
#$SCRIPTS/install libX11
|
||||||
|
$SCRIPTS/install libsoup
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/lib/gstreamer-0.10
|
mkdir -p $INSTALL/usr/lib/gstreamer-0.10
|
||||||
cp -PR `find $BUILD/$1*/{ext,gst,sys} -name *.so` $INSTALL/usr/lib/gstreamer-0.10
|
cp -PR `find $BUILD/$1*/{ext,gst,sys} -name *.so` $INSTALL/usr/lib/gstreamer-0.10
|
||||||
|
@ -26,4 +26,9 @@ cp -PR $BUILD/$1*/src/connman.conf $INSTALL/etc/dbus-1/system.d
|
|||||||
mkdir -p $INSTALL/etc/udev/rules.d
|
mkdir -p $INSTALL/etc/udev/rules.d
|
||||||
cp -PR $BUILD/$1*/src/92-connman.rules $INSTALL/etc/udev/rules.d
|
cp -PR $BUILD/$1*/src/92-connman.rules $INSTALL/etc/udev/rules.d
|
||||||
|
|
||||||
cp -PR $PKG_DIR/config/*.conf $INSTALL/etc
|
#cp -PR $PKG_DIR/config/*.conf $INSTALL/etc
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp -PR $BUILD/$1*/client/cm $INSTALL/usr/bin
|
||||||
|
cp -PR $BUILD/$1*/test $INSTALL
|
||||||
|
|
||||||
|
@ -11,9 +11,13 @@ ac_cv_func_malloc_0_nonnull=yes \
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--enable-static \
|
--disable-static \
|
||||||
--disable-shared \
|
--enable-shared \
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
$MAKEINSTALL
|
$STRIP src/bin/.libs/proxy
|
||||||
|
$STRIP src/lib/.libs/*.so*
|
||||||
|
$STRIP src/plugins/.libs/*.so*
|
||||||
|
|
||||||
|
$MAKEINSTALL
|
||||||
|
16
packages/network/libproxy/install
Executable file
16
packages/network/libproxy/install
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
PLUGIN_DIR=`pkg-config libproxy-1.0 --define-variable=prefix=/usr --variable=plugindir`
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/bin
|
||||||
|
cp -PR $BUILD/$1*/src/bin/.libs/proxy $INSTALL/usr/bin
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/lib
|
||||||
|
cp -PR $BUILD/$1*/src/lib/.libs/*.so* $INSTALL/usr/lib
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/$PLUGIN_DIR
|
||||||
|
cp -PR $BUILD/$1*/src/plugins/.libs/*.so $INSTALL/$PLUGIN_DIR
|
||||||
|
|
||||||
|
cp -PR $BUILD/$1*/test.d $INSTALL
|
11
packages/network/libproxy/patches/libproxy_plugindir.diff
Normal file
11
packages/network/libproxy/patches/libproxy_plugindir.diff
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -Naur libproxy-svn-334/libproxy-1.0.pc.in libproxy-svn-334.patch/libproxy-1.0.pc.in
|
||||||
|
--- libproxy-svn-334/libproxy-1.0.pc.in 2009-04-21 15:45:40.000000000 +0200
|
||||||
|
+++ libproxy-svn-334.patch/libproxy-1.0.pc.in 2009-04-21 18:34:08.000000000 +0200
|
||||||
|
@@ -2,6 +2,7 @@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
+plugindir=${libdir}/libproxy/@VERSION@/plugins
|
||||||
|
|
||||||
|
Name: libproxy
|
||||||
|
Description: Proxy Configuration Library
|
@ -1 +1 @@
|
|||||||
http://libproxy.googlecode.com/files/libproxy-0.2.3.tar.gz
|
http://sources.openelec.tv/svn/libproxy-svn-334.tar.bz2
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
$SCRIPTS/build toolchain
|
$SCRIPTS/build toolchain
|
||||||
$SCRIPTS/build libproxy
|
$SCRIPTS/build libproxy
|
||||||
$SCRIPTS/build gnutls
|
#$SCRIPTS/build gnutls
|
||||||
|
|
||||||
cd $BUILD/$1*
|
cd $BUILD/$1*
|
||||||
|
|
||||||
@ -13,10 +13,13 @@ cd $BUILD/$1*
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--enable-static \
|
--disable-static \
|
||||||
--disable-shared \
|
--enable-shared \
|
||||||
--without-gnome
|
--without-gnome \
|
||||||
|
--disable-ssl \
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
$STRIP $1/.libs/*.so*
|
||||||
|
|
||||||
$MAKEINSTALL
|
$MAKEINSTALL
|
||||||
|
12
packages/network/libsoup/install
Executable file
12
packages/network/libsoup/install
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. config/options
|
||||||
|
|
||||||
|
$SCRIPTS/install libproxy
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/usr/lib
|
||||||
|
cp -PR $BUILD/$1*/$1/.libs/*.so* $INSTALL/usr/lib
|
||||||
|
|
||||||
|
mkdir -p $INSTALL/tests
|
||||||
|
|
||||||
|
cp -PR $BUILD/$1*/tests/.libs/* $INSTALL/tests
|
@ -1,304 +0,0 @@
|
|||||||
Submitted By: Jim Gifford (jim at cross-lfs dot org)
|
|
||||||
Date: 01-25-2009
|
|
||||||
Initial Package Version: 4.3.3
|
|
||||||
Origin: Jim Gifford
|
|
||||||
Rediffed against 4.1.0 by Chris Staub
|
|
||||||
Rediffed against 4.1.2 by Jim Gifford
|
|
||||||
Rediffed and additions against 4.2.0 by Joe Ciccone
|
|
||||||
Rediffed against 4.3.0 by Joe Ciccone
|
|
||||||
Rediffed against 4.3.3 by Jim Gifford
|
|
||||||
Upstream Status: On Hold
|
|
||||||
Description: Makes GCC Posix Compliant
|
|
||||||
|
|
||||||
diff -Naur gcc-4.3.3.orig/contrib/patch_tester.sh gcc-4.3.3/contrib/patch_tester.sh
|
|
||||||
--- gcc-4.3.3.orig/contrib/patch_tester.sh 2007-12-26 13:01:38.000000000 -0800
|
|
||||||
+++ gcc-4.3.3/contrib/patch_tester.sh 2009-01-25 00:53:32.447636261 -0800
|
|
||||||
@@ -287,7 +287,7 @@
|
|
||||||
|
|
||||||
if ! make $dashj `grep "^make:" $PATCH | sed -e "s/^make://g"` bootstrap &> $1/bootstrap ; then
|
|
||||||
report "bootstrap failed with last lines:"
|
|
||||||
- tail -30 $1/bootstrap > $1/last_bootstrap
|
|
||||||
+ tail -n 30 $1/bootstrap > $1/last_bootstrap
|
|
||||||
freport $1/last_bootstrap
|
|
||||||
report "grep --context=20 Error bootstrap:"
|
|
||||||
grep --context=20 Error $1/bootstrap > $1/bootstrap_error
|
|
||||||
@@ -420,7 +420,7 @@
|
|
||||||
# After selfexec, $TESTING is already set up.
|
|
||||||
if [ -d $TESTING ]; then
|
|
||||||
# The only file in $TESTING is the patch.
|
|
||||||
- PATCH=`ls -rt -1 $TESTING | head -1`
|
|
||||||
+ PATCH=`ls -rt -1 $TESTING | head -n 1`
|
|
||||||
PATCH=$TESTING/$PATCH
|
|
||||||
if [ -f $PATCH ]; then
|
|
||||||
bootntest_patched && bootntest_pristine && compare_passes
|
|
||||||
@@ -429,7 +429,7 @@
|
|
||||||
fi
|
|
||||||
|
|
||||||
while true; do
|
|
||||||
- PATCH=`ls -rt -1 $PATCHES | head -1`
|
|
||||||
+ PATCH=`ls -rt -1 $PATCHES | head -n 1`
|
|
||||||
if [ x$PATCH = x ]; then
|
|
||||||
sleep ${standby}m
|
|
||||||
else
|
|
||||||
diff -Naur gcc-4.3.3.orig/contrib/test_summary gcc-4.3.3/contrib/test_summary
|
|
||||||
--- gcc-4.3.3.orig/contrib/test_summary 2007-02-09 16:30:46.000000000 -0800
|
|
||||||
+++ gcc-4.3.3/contrib/test_summary 2009-01-25 00:53:32.447636261 -0800
|
|
||||||
@@ -107,7 +107,7 @@
|
|
||||||
srcdir = configflags;
|
|
||||||
sub(/\/configure .*/, "", srcdir);
|
|
||||||
printf "LAST_UPDATED: ";
|
|
||||||
- system("tail -1 " srcdir "/LAST_UPDATED");
|
|
||||||
+ system("tail -n 1 " srcdir "/LAST_UPDATED");
|
|
||||||
print "";
|
|
||||||
|
|
||||||
sub(/^[^ ]*\/configure */, " ", configflags);
|
|
||||||
diff -Naur gcc-4.3.3.orig/gcc/configure gcc-4.3.3/gcc/configure
|
|
||||||
--- gcc-4.3.3.orig/gcc/configure 2008-08-01 02:51:03.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/gcc/configure 2009-01-25 00:53:32.455839362 -0800
|
|
||||||
@@ -20245,7 +20245,7 @@
|
|
||||||
# Therefore, use diff -b for the comparisons.
|
|
||||||
if test x$gcc_cv_objdump != x \
|
|
||||||
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
|
||||||
- | tail -3 > conftest.got \
|
|
||||||
+ | tail -n 3 > conftest.got \
|
|
||||||
&& { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
|
|
||||||
|| diff -b conftest.big conftest.got > /dev/null 2>&1; }
|
|
||||||
then
|
|
||||||
diff -Naur gcc-4.3.3.orig/gcc/configure.ac gcc-4.3.3/gcc/configure.ac
|
|
||||||
--- gcc-4.3.3.orig/gcc/configure.ac 2008-08-01 02:51:03.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/gcc/configure.ac 2009-01-25 00:53:32.455839362 -0800
|
|
||||||
@@ -2241,7 +2241,7 @@
|
|
||||||
# Therefore, use diff -b for the comparisons.
|
|
||||||
if test x$gcc_cv_objdump != x \
|
|
||||||
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
|
||||||
- | tail -3 > conftest.got \
|
|
||||||
+ | tail -n 3 > conftest.got \
|
|
||||||
&& { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
|
|
||||||
|| diff -b conftest.big conftest.got > /dev/null 2>&1; }
|
|
||||||
then
|
|
||||||
diff -Naur gcc-4.3.3.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.3.3/gcc/testsuite/ada/acats/run_all.sh
|
|
||||||
--- gcc-4.3.3.orig/gcc/testsuite/ada/acats/run_all.sh 2006-09-14 03:12:03.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/gcc/testsuite/ada/acats/run_all.sh 2009-01-25 00:53:32.459940773 -0800
|
|
||||||
@@ -68,7 +68,7 @@
|
|
||||||
ls ${i}?.adb > ${i}.lst 2> /dev/null
|
|
||||||
ls ${i}*m.adb >> ${i}.lst 2> /dev/null
|
|
||||||
ls ${i}.adb >> ${i}.lst 2> /dev/null
|
|
||||||
- main=`tail -1 ${i}.lst`
|
|
||||||
+ main=`tail -n 1 ${i}.lst`
|
|
||||||
}
|
|
||||||
|
|
||||||
EXTERNAL_OBJECTS=""
|
|
||||||
diff -Naur gcc-4.3.3.orig/libgomp/acinclude.m4 gcc-4.3.3/libgomp/acinclude.m4
|
|
||||||
--- gcc-4.3.3.orig/libgomp/acinclude.m4 2007-03-18 04:17:44.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/libgomp/acinclude.m4 2009-01-25 00:53:32.459940773 -0800
|
|
||||||
@@ -147,7 +147,7 @@
|
|
||||||
# Start by getting the version number. I think the libtool test already
|
|
||||||
# does some of this, but throws away the result.
|
|
||||||
changequote(,)
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
changequote([,])
|
|
||||||
libgomp_gnu_ld_version=`echo $ldver | \
|
|
||||||
diff -Naur gcc-4.3.3.orig/libgomp/configure gcc-4.3.3/libgomp/configure
|
|
||||||
--- gcc-4.3.3.orig/libgomp/configure 2008-01-24 08:23:13.000000000 -0800
|
|
||||||
+++ gcc-4.3.3/libgomp/configure 2009-01-25 00:53:32.464042184 -0800
|
|
||||||
@@ -17600,7 +17600,7 @@
|
|
||||||
# Start by getting the version number. I think the libtool test already
|
|
||||||
# does some of this, but throws away the result.
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
libgomp_gnu_ld_version=`echo $ldver | \
|
|
||||||
diff -Naur gcc-4.3.3.orig/libjava/classpath/configure gcc-4.3.3/libjava/classpath/configure
|
|
||||||
--- gcc-4.3.3.orig/libjava/classpath/configure 2008-02-29 15:47:54.000000000 -0800
|
|
||||||
+++ gcc-4.3.3/libjava/classpath/configure 2009-01-25 00:53:32.480448386 -0800
|
|
||||||
@@ -29126,7 +29126,7 @@
|
|
||||||
fi # shortcircut to system "stdint.h"
|
|
||||||
# ------------------ PREPARE VARIABLES ------------------------------
|
|
||||||
if test "$GCC" = "yes" ; then
|
|
||||||
-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
|
|
||||||
+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
|
|
||||||
else
|
|
||||||
ac_cv_stdint_message="using $CC"
|
|
||||||
fi
|
|
||||||
diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-c.sh gcc-4.3.3/libjava/classpath/ltcf-c.sh
|
|
||||||
--- gcc-4.3.3.orig/libjava/classpath/ltcf-c.sh 2006-01-17 10:09:40.000000000 -0800
|
|
||||||
+++ gcc-4.3.3/libjava/classpath/ltcf-c.sh 2009-01-25 00:53:32.484550356 -0800
|
|
||||||
@@ -153,7 +153,7 @@
|
|
||||||
# If the export-symbols file already is a .def file (1st line
|
|
||||||
# is EXPORTS), use it as is.
|
|
||||||
# If DATA tags from a recent dlltool are present, honour them!
|
|
||||||
- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
|
||||||
+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
|
||||||
cp $export_symbols $output_objdir/$soname-def;
|
|
||||||
else
|
|
||||||
echo EXPORTS > $output_objdir/$soname-def;
|
|
||||||
diff -Naur gcc-4.3.3.orig/libjava/classpath/ltcf-gcj.sh gcc-4.3.3/libjava/classpath/ltcf-gcj.sh
|
|
||||||
--- gcc-4.3.3.orig/libjava/classpath/ltcf-gcj.sh 2005-09-23 14:31:04.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/libjava/classpath/ltcf-gcj.sh 2009-01-25 00:53:32.484550356 -0800
|
|
||||||
@@ -156,7 +156,7 @@
|
|
||||||
# If the export-symbols file already is a .def file (1st line
|
|
||||||
# is EXPORTS), use it as is.
|
|
||||||
# If DATA tags from a recent dlltool are present, honour them!
|
|
||||||
- archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
|
|
||||||
+ archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
|
|
||||||
cp $export_symbols $output_objdir/$soname-def;
|
|
||||||
else
|
|
||||||
echo EXPORTS > $output_objdir/$soname-def;
|
|
||||||
diff -Naur gcc-4.3.3.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.3.3/libjava/classpath/m4/ax_create_stdint_h.m4
|
|
||||||
--- gcc-4.3.3.orig/libjava/classpath/m4/ax_create_stdint_h.m4 2007-05-19 13:44:43.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/libjava/classpath/m4/ax_create_stdint_h.m4 2009-01-25 00:53:32.484550356 -0800
|
|
||||||
@@ -217,7 +217,7 @@
|
|
||||||
fi # shortcircut to system "stdint.h"
|
|
||||||
# ------------------ PREPARE VARIABLES ------------------------------
|
|
||||||
if test "$GCC" = "yes" ; then
|
|
||||||
-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
|
|
||||||
+ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
|
|
||||||
else
|
|
||||||
ac_cv_stdint_message="using $CC"
|
|
||||||
fi
|
|
||||||
diff -Naur gcc-4.3.3.orig/libjava/configure gcc-4.3.3/libjava/configure
|
|
||||||
--- gcc-4.3.3.orig/libjava/configure 2009-01-24 02:32:29.000000000 -0800
|
|
||||||
+++ gcc-4.3.3/libjava/configure 2009-01-25 00:53:32.492753177 -0800
|
|
||||||
@@ -18673,8 +18673,8 @@
|
|
||||||
echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
|
|
||||||
LD_PROG=`$CC --print-prog-name=ld`
|
|
||||||
LD_VERSION=`$LD_PROG --version`
|
|
||||||
-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
||||||
-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
|
|
||||||
+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
||||||
+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
|
|
||||||
if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
|
|
||||||
LD_OK="ok"
|
|
||||||
else
|
|
||||||
diff -Naur gcc-4.3.3.orig/libjava/mingwld.m4 gcc-4.3.3/libjava/mingwld.m4
|
|
||||||
--- gcc-4.3.3.orig/libjava/mingwld.m4 2005-08-22 15:36:35.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/libjava/mingwld.m4 2009-01-25 00:53:32.492753177 -0800
|
|
||||||
@@ -3,8 +3,8 @@
|
|
||||||
AC_MSG_CHECKING(whether 'ld' is at least 2.13)
|
|
||||||
LD_PROG=`$CC --print-prog-name=ld`
|
|
||||||
LD_VERSION=`$LD_PROG --version`
|
|
||||||
-LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
||||||
-LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
|
|
||||||
+LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
|
|
||||||
+LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
|
|
||||||
if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
|
|
||||||
LD_OK="ok"
|
|
||||||
else
|
|
||||||
diff -Naur gcc-4.3.3.orig/libstdc++-v3/acinclude.m4 gcc-4.3.3/libstdc++-v3/acinclude.m4
|
|
||||||
--- gcc-4.3.3.orig/libstdc++-v3/acinclude.m4 2008-04-25 09:52:57.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/libstdc++-v3/acinclude.m4 2009-01-25 00:53:32.500956558 -0800
|
|
||||||
@@ -234,7 +234,7 @@
|
|
||||||
if test x"$with_gnu_ld" = x"yes"; then
|
|
||||||
AC_MSG_CHECKING([for ld version])
|
|
||||||
changequote(,)
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
changequote([,])
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
diff -Naur gcc-4.3.3.orig/libstdc++-v3/configure gcc-4.3.3/libstdc++-v3/configure
|
|
||||||
--- gcc-4.3.3.orig/libstdc++-v3/configure 2008-07-07 12:49:54.000000000 -0700
|
|
||||||
+++ gcc-4.3.3/libstdc++-v3/configure 2009-01-25 00:53:32.582987288 -0800
|
|
||||||
@@ -17490,7 +17490,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -42215,7 +42215,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -84606,7 +84606,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -85622,7 +85622,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -86610,7 +86610,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -109089,7 +109089,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -109934,7 +109934,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -110828,7 +110828,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -112114,7 +112114,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -112850,7 +112850,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
||||||
@@ -113351,7 +113351,7 @@
|
|
||||||
echo "$as_me:$LINENO: checking for ld version" >&5
|
|
||||||
echo $ECHO_N "checking for ld version... $ECHO_C" >&6
|
|
||||||
|
|
||||||
- ldver=`$LD --version 2>/dev/null | head -1 | \
|
|
||||||
+ ldver=`$LD --version 2>/dev/null | head -n 1 | \
|
|
||||||
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
|
|
||||||
|
|
||||||
glibcxx_gnu_ld_version=`echo $ldver | \
|
|
@ -1,16 +1,4 @@
|
|||||||
see gcc PR34205
|
see gcc PR34205
|
||||||
Index: gcc-4.3.0/gcc/tree.h
|
|
||||||
===================================================================
|
|
||||||
--- gcc-4.3.0/gcc/tree.h (revision 130511)
|
|
||||||
+++ gcc-4.3.0/gcc/tree.h (working copy)
|
|
||||||
@@ -38,6 +38,7 @@
|
|
||||||
|
|
||||||
LAST_AND_UNUSED_TREE_CODE /* A convenient way to get a value for
|
|
||||||
NUM_TREE_CODES. */
|
|
||||||
+ ,__LAST_AND_UNUSED_TREE_CODE=32767 /* Force 16bit width. */
|
|
||||||
};
|
|
||||||
|
|
||||||
#undef DEFTREECODE
|
|
||||||
Index: gcc-4.3.0/gcc/rtl.h
|
Index: gcc-4.3.0/gcc/rtl.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- gcc-4.3.0/gcc/rtl.h (revision 130511)
|
--- gcc-4.3.0/gcc/rtl.h (revision 130511)
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.3.3/gcc-4.3.3.tar.bz2
|
ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.4.0/gcc-4.4.0.tar.bz2
|
||||||
|
|
||||||
|
@ -1,375 +0,0 @@
|
|||||||
Submitted By: Jim Gifford (jim at cross-lfs dot org)
|
|
||||||
Date: 2009-01-03
|
|
||||||
Initial Package Version: 4.2.4
|
|
||||||
Origin: GMP Website
|
|
||||||
Upstream Status: Fixed
|
|
||||||
Description: See http://gmplib.org Website Under Curent Status
|
|
||||||
|
|
||||||
diff -Naur gmp-4.2.4.orig/doc/gmp.texi gmp-4.2.4/doc/gmp.texi
|
|
||||||
--- gmp-4.2.4.orig/doc/gmp.texi 2008-09-18 11:36:14.000000000 -0400
|
|
||||||
+++ gmp-4.2.4/doc/gmp.texi 2009-01-03 13:48:39.498471376 -0500
|
|
||||||
@@ -4849,9 +4849,12 @@
|
|
||||||
equal, zero otherwise. I.e., test if @var{op1} and @var{op2} are approximately
|
|
||||||
equal.
|
|
||||||
|
|
||||||
-Caution: Currently only whole limbs are compared, and only in an exact
|
|
||||||
-fashion. In the future values like 1000 and 0111 may be considered the same
|
|
||||||
-to 3 bits (on the basis that their difference is that small).
|
|
||||||
+Caution 1: All version of GMP up to version 4.2.4 compared just whole limbs,
|
|
||||||
+meaning sometimes more than @var{op3} bits, sometimes fewer.
|
|
||||||
+
|
|
||||||
+Caution 2: This function will consider XXX11...111 and XX100...000 different,
|
|
||||||
+even if ... is replaced by a semi-infinite number of bits. Such numbers are
|
|
||||||
+really just one ulp off, and should be considered equal.
|
|
||||||
@end deftypefun
|
|
||||||
|
|
||||||
@deftypefun void mpf_reldiff (mpf_t @var{rop}, mpf_t @var{op1}, mpf_t @var{op2})
|
|
||||||
diff -Naur gmp-4.2.4.orig/mpf/eq.c gmp-4.2.4/mpf/eq.c
|
|
||||||
--- gmp-4.2.4.orig/mpf/eq.c 2007-08-30 14:31:40.000000000 -0400
|
|
||||||
+++ gmp-4.2.4/mpf/eq.c 2009-01-03 13:48:39.498471376 -0500
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
/* mpf_eq -- Compare two floats up to a specified bit #.
|
|
||||||
|
|
||||||
-Copyright 1993, 1995, 1996, 2001, 2002 Free Software Foundation, Inc.
|
|
||||||
+Copyright 1993, 1995, 1996, 2001, 2002, 2008 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the GNU MP Library.
|
|
||||||
|
|
||||||
@@ -19,6 +19,7 @@
|
|
||||||
|
|
||||||
#include "gmp.h"
|
|
||||||
#include "gmp-impl.h"
|
|
||||||
+#include "longlong.h"
|
|
||||||
|
|
||||||
int
|
|
||||||
mpf_eq (mpf_srcptr u, mpf_srcptr v, unsigned long int n_bits)
|
|
||||||
@@ -26,6 +27,8 @@
|
|
||||||
mp_srcptr up, vp;
|
|
||||||
mp_size_t usize, vsize, size, i;
|
|
||||||
mp_exp_t uexp, vexp;
|
|
||||||
+ mp_limb_t diff;
|
|
||||||
+ int cnt;
|
|
||||||
|
|
||||||
uexp = u->_mp_exp;
|
|
||||||
vexp = v->_mp_exp;
|
|
||||||
@@ -53,10 +56,8 @@
|
|
||||||
/* U and V have the same sign and are both non-zero. */
|
|
||||||
|
|
||||||
/* 2. Are the exponents different? */
|
|
||||||
- if (uexp > vexp)
|
|
||||||
- return 0; /* ??? handle (uexp = vexp + 1) */
|
|
||||||
- if (vexp > uexp)
|
|
||||||
- return 0; /* ??? handle (vexp = uexp + 1) */
|
|
||||||
+ if (uexp != vexp)
|
|
||||||
+ return 0;
|
|
||||||
|
|
||||||
usize = ABS (usize);
|
|
||||||
vsize = ABS (vsize);
|
|
||||||
@@ -93,17 +94,26 @@
|
|
||||||
size = usize;
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (size > (n_bits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS)
|
|
||||||
- size = (n_bits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS;
|
|
||||||
+ up += usize; /* point just above most significant limb */
|
|
||||||
+ vp += vsize; /* point just above most significant limb */
|
|
||||||
|
|
||||||
- up += usize - size;
|
|
||||||
- vp += vsize - size;
|
|
||||||
+ count_leading_zeros (cnt, up[-1]);
|
|
||||||
+ if ((vp[-1] >> (GMP_LIMB_BITS - 1 - cnt)) != 1)
|
|
||||||
+ return 0; /* msb positions different */
|
|
||||||
|
|
||||||
- for (i = size - 1; i >= 0; i--)
|
|
||||||
+ n_bits += cnt - GMP_NAIL_BITS;
|
|
||||||
+
|
|
||||||
+ size = MIN (size, (n_bits + GMP_NUMB_BITS - 1) / GMP_NUMB_BITS);
|
|
||||||
+
|
|
||||||
+ up -= size; /* point at least significant relevant limb */
|
|
||||||
+ vp -= size; /* point at least significant relevant limb */
|
|
||||||
+
|
|
||||||
+ for (i = size - 1; i > 0; i--)
|
|
||||||
{
|
|
||||||
if (up[i] != vp[i])
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
- return 1;
|
|
||||||
+ diff = (up[0] ^ vp[0]) >> GMP_NUMB_BITS - 1 - (n_bits - 1) % GMP_NUMB_BITS;
|
|
||||||
+ return diff == 0;
|
|
||||||
}
|
|
||||||
diff -Naur gmp-4.2.4.orig/mpf/set_str.c gmp-4.2.4/mpf/set_str.c
|
|
||||||
--- gmp-4.2.4.orig/mpf/set_str.c 2008-08-25 10:11:37.000000000 -0400
|
|
||||||
+++ gmp-4.2.4/mpf/set_str.c 2009-01-03 13:48:18.493274358 -0500
|
|
||||||
@@ -137,7 +137,12 @@
|
|
||||||
c = (unsigned char) *++str;
|
|
||||||
}
|
|
||||||
|
|
||||||
+ /* Default base to decimal. */
|
|
||||||
+ if (base == 0)
|
|
||||||
+ base = 10;
|
|
||||||
+
|
|
||||||
exp_base = base;
|
|
||||||
+
|
|
||||||
if (base < 0)
|
|
||||||
{
|
|
||||||
exp_base = 10;
|
|
||||||
@@ -165,10 +170,6 @@
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
- /* Default base to decimal. */
|
|
||||||
- if (base == 0)
|
|
||||||
- base = 10;
|
|
||||||
-
|
|
||||||
/* Locate exponent part of the input. Look from the right of the string,
|
|
||||||
since the exponent is usually a lot shorter than the mantissa. */
|
|
||||||
expptr = NULL;
|
|
||||||
diff -Naur gmp-4.2.4.orig/mpz/perfpow.c gmp-4.2.4/mpz/perfpow.c
|
|
||||||
--- gmp-4.2.4.orig/mpz/perfpow.c 2007-08-30 14:31:41.000000000 -0400
|
|
||||||
+++ gmp-4.2.4/mpz/perfpow.c 2009-01-03 13:47:51.611742467 -0500
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
/* mpz_perfect_power_p(arg) -- Return non-zero if ARG is a perfect power,
|
|
||||||
zero otherwise.
|
|
||||||
|
|
||||||
-Copyright 1998, 1999, 2000, 2001, 2005 Free Software Foundation, Inc.
|
|
||||||
+Copyright 1998, 1999, 2000, 2001, 2005, 2008 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the GNU MP Library.
|
|
||||||
|
|
||||||
@@ -59,6 +59,8 @@
|
|
||||||
#define SMALLEST_OMITTED_PRIME 1009
|
|
||||||
|
|
||||||
|
|
||||||
+#define POW2P(a) (((a) & ((a) - 1)) == 0)
|
|
||||||
+
|
|
||||||
int
|
|
||||||
mpz_perfect_power_p (mpz_srcptr u)
|
|
||||||
{
|
|
||||||
@@ -72,16 +74,13 @@
|
|
||||||
mp_size_t usize = SIZ (u);
|
|
||||||
TMP_DECL;
|
|
||||||
|
|
||||||
- if (usize == 0)
|
|
||||||
- return 1; /* consider 0 a perfect power */
|
|
||||||
+ if (mpz_cmpabs_ui (u, 1) <= 0)
|
|
||||||
+ return 1; /* -1, 0, and +1 are perfect powers */
|
|
||||||
|
|
||||||
n2 = mpz_scan1 (u, 0);
|
|
||||||
if (n2 == 1)
|
|
||||||
return 0; /* 2 divides exactly once. */
|
|
||||||
|
|
||||||
- if (n2 != 0 && (n2 & 1) == 0 && usize < 0)
|
|
||||||
- return 0; /* 2 has even multiplicity with negative U */
|
|
||||||
-
|
|
||||||
TMP_MARK;
|
|
||||||
|
|
||||||
uns = ABS (usize) - n2 / BITS_PER_MP_LIMB;
|
|
||||||
@@ -89,6 +88,14 @@
|
|
||||||
MPZ_TMP_INIT (u2, uns);
|
|
||||||
|
|
||||||
mpz_tdiv_q_2exp (u2, u, n2);
|
|
||||||
+ mpz_abs (u2, u2);
|
|
||||||
+
|
|
||||||
+ if (mpz_cmp_ui (u2, 1) == 0)
|
|
||||||
+ {
|
|
||||||
+ TMP_FREE;
|
|
||||||
+ /* factoring completed; consistent power */
|
|
||||||
+ return ! (usize < 0 && POW2P(n2));
|
|
||||||
+ }
|
|
||||||
|
|
||||||
if (isprime (n2))
|
|
||||||
goto n2prime;
|
|
||||||
@@ -97,6 +104,9 @@
|
|
||||||
{
|
|
||||||
prime = primes[i];
|
|
||||||
|
|
||||||
+ if (mpz_cmp_ui (u2, prime) < 0)
|
|
||||||
+ break;
|
|
||||||
+
|
|
||||||
if (mpz_divisible_ui_p (u2, prime)) /* divisible by this prime? */
|
|
||||||
{
|
|
||||||
rem = mpz_tdiv_q_ui (q, u2, prime * prime);
|
|
||||||
@@ -115,12 +125,6 @@
|
|
||||||
n++;
|
|
||||||
}
|
|
||||||
|
|
||||||
- if ((n & 1) == 0 && usize < 0)
|
|
||||||
- {
|
|
||||||
- TMP_FREE;
|
|
||||||
- return 0; /* even multiplicity with negative U, reject */
|
|
||||||
- }
|
|
||||||
-
|
|
||||||
n2 = gcd (n2, n);
|
|
||||||
if (n2 == 1)
|
|
||||||
{
|
|
||||||
@@ -128,10 +132,11 @@
|
|
||||||
return 0; /* we have multiplicity 1 of some factor */
|
|
||||||
}
|
|
||||||
|
|
||||||
- if (mpz_cmpabs_ui (u2, 1) == 0)
|
|
||||||
+ if (mpz_cmp_ui (u2, 1) == 0)
|
|
||||||
{
|
|
||||||
TMP_FREE;
|
|
||||||
- return 1; /* factoring completed; consistent power */
|
|
||||||
+ /* factoring completed; consistent power */
|
|
||||||
+ return ! (usize < 0 && POW2P(n2));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* As soon as n2 becomes a prime number, stop factoring.
|
|
||||||
@@ -169,6 +174,10 @@
|
|
||||||
else
|
|
||||||
{
|
|
||||||
unsigned long int nth;
|
|
||||||
+
|
|
||||||
+ if (usize < 0 && POW2P(n2))
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
/* We found some factors above. We just need to consider values of n
|
|
||||||
that divides n2. */
|
|
||||||
for (nth = 2; nth <= n2; nth++)
|
|
||||||
@@ -184,8 +193,11 @@
|
|
||||||
exact = mpz_root (q, u2, nth);
|
|
||||||
if (exact)
|
|
||||||
{
|
|
||||||
- TMP_FREE;
|
|
||||||
- return 1;
|
|
||||||
+ if (! (usize < 0 && POW2P(nth)))
|
|
||||||
+ {
|
|
||||||
+ TMP_FREE;
|
|
||||||
+ return 1;
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
if (mpz_cmp_ui (q, SMALLEST_OMITTED_PRIME) < 0)
|
|
||||||
{
|
|
||||||
@@ -199,6 +211,9 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
n2prime:
|
|
||||||
+ if (usize < 0 && POW2P(n2))
|
|
||||||
+ return 0;
|
|
||||||
+
|
|
||||||
exact = mpz_root (NULL, u2, n2);
|
|
||||||
TMP_FREE;
|
|
||||||
return exact;
|
|
||||||
diff -Naur gmp-4.2.4.orig/tests/cxx/t-prec.cc gmp-4.2.4/tests/cxx/t-prec.cc
|
|
||||||
--- gmp-4.2.4.orig/tests/cxx/t-prec.cc 2007-09-01 06:09:03.000000000 -0400
|
|
||||||
+++ gmp-4.2.4/tests/cxx/t-prec.cc 2009-01-03 13:48:39.498471376 -0500
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
/* Test precision of mpf_class expressions.
|
|
||||||
|
|
||||||
-Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
||||||
+Copyright 2001, 2002, 2003, 2008 Free Software Foundation, Inc.
|
|
||||||
|
|
||||||
This file is part of the GNU MP Library.
|
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@
|
|
||||||
g = 1 / f;
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
(g, "0.11111 11111 11111 11111 11111 11111 11111 11111 11111 11111"
|
|
||||||
- " 11111 11111 11111 11111 11111 11", very_large_prec);
|
|
||||||
+ " 11111 11111 11111 11111 11111 111", very_large_prec);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mpf_class f(15.0, large_prec);
|
|
||||||
@@ -69,7 +69,7 @@
|
|
||||||
g = 1 / f;
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
(g, "0.06666 66666 66666 66666 66666 66666 66666 66666 66666 66666"
|
|
||||||
- " 66666 66666 66666 66666 66666 67", very_large_prec);
|
|
||||||
+ " 66666 66666 66666 66666 66666 667", very_large_prec);
|
|
||||||
}
|
|
||||||
|
|
||||||
// compound expressions
|
|
||||||
@@ -94,14 +94,14 @@
|
|
||||||
i = f / g + h;
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
(i, "15.33333 33333 33333 33333 33333 33333 33333 33333 33333 33333"
|
|
||||||
- " 33333 33333 33333 333", very_large_prec);
|
|
||||||
+ " 33333 33333 33333 33333 33333 3", very_large_prec);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mpf_class f(3.0, small_prec);
|
|
||||||
mpf_class g(-(1 + f) / 3, very_large_prec);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
(g, "-1.33333 33333 33333 33333 33333 33333 33333 33333 33333 33333"
|
|
||||||
- " 33333 33333 33333 333", very_large_prec);
|
|
||||||
+ " 33333 33333 33333 33333 33333 33", very_large_prec);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mpf_class f(9.0, medium_prec);
|
|
||||||
@@ -117,7 +117,7 @@
|
|
||||||
g = hypot(1 + 5 / f, 1.0);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
(g, "1.66666 66666 66666 66666 66666 66666 66666 66666 66666 66666"
|
|
||||||
- " 66666 66666 66666 667", very_large_prec);
|
|
||||||
+ " 66666 66666 66666 66666 66666 67", very_large_prec);
|
|
||||||
}
|
|
||||||
|
|
||||||
// compound assignments
|
|
||||||
@@ -142,7 +142,7 @@
|
|
||||||
mpf_class g(0.0, very_large_prec);
|
|
||||||
g = mpf_class(1 / f);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
- (g, "0.11111 11111 11111 11111 11111 11111 11111 111", medium_prec);
|
|
||||||
+ (g, "0.11111 11111 11111 11111 11111 11111 11111 1111", medium_prec);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mpf_class f(15.0, large_prec);
|
|
||||||
@@ -150,7 +150,7 @@
|
|
||||||
g = mpf_class(1 / f);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
(g, "0.06666 66666 66666 66666 66666 66666 66666 66666 66666 66666"
|
|
||||||
- " 66666 667", large_prec);
|
|
||||||
+ " 66666 6667", large_prec);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
@@ -158,7 +158,8 @@
|
|
||||||
mpf_class h(0.0, very_large_prec);
|
|
||||||
h = mpf_class(f / g + 1, large_prec);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
- (h, "1.33333 33333 33333 33333 33333 33333 33333 33333 33333 3333",
|
|
||||||
+ (h, "1.33333 33333 33333 33333 33333 33333 33333 33333 33333 33333"
|
|
||||||
+ " 33333 333",
|
|
||||||
large_prec);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -170,7 +171,7 @@
|
|
||||||
g = f - q;
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
(g, "2.66666 66666 66666 66666 66666 66666 66666 66666 66666 66666"
|
|
||||||
- " 66666 66666 66666 667", very_large_prec);
|
|
||||||
+ " 66666 66666 66666 66666 66666 67", very_large_prec);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
@@ -179,7 +180,8 @@
|
|
||||||
mpf_class g(0.0, very_large_prec);
|
|
||||||
g = mpf_class(f - q, large_prec);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
- (g, "2.66666 66666 66666 66666 66666 66666 66666 66666 66666 6667",
|
|
||||||
+ (g, "2.66666 66666 66666 66666 66666 66666 66666 66666 66666 66666"
|
|
||||||
+ " 66666 667",
|
|
||||||
large_prec);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
@@ -188,7 +190,7 @@
|
|
||||||
mpf_class g(0.0, very_large_prec);
|
|
||||||
g = mpf_class(f - q);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
- (g, "2.66666 66666 66666 66666 66666 6667", medium_prec);
|
|
||||||
+ (g, "2.66666 66666 66666 66666 66666 66666 66666 667", medium_prec);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
mpf_class f(15.0, large_prec);
|
|
||||||
@@ -196,7 +198,8 @@
|
|
||||||
mpf_class g(0.0, very_large_prec);
|
|
||||||
g = mpf_class(f + q);
|
|
||||||
ASSERT_ALWAYS_PREC
|
|
||||||
- (g, "15.33333 33333 33333 33333 33333 33333 33333 33333 33333 3333",
|
|
||||||
+ (g, "15.33333 33333 33333 33333 33333 33333 33333 33333 33333 33333"
|
|
||||||
+ " 33333 33",
|
|
||||||
large_prec);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +1 @@
|
|||||||
http://ftp.sunet.se/pub/gnu/gmp/gmp-4.2.4.tar.bz2
|
http://ftp.sunet.se/pub/gnu/gmp/gmp-4.3.0.tar.bz2
|
||||||
|
@ -1 +1 @@
|
|||||||
http://www.mpfr.org/mpfr-2.4.0/mpfr-2.4.0.tar.bz2
|
http://www.mpfr.org/mpfr-2.4.1/mpfr-2.4.1.tar.bz2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user