[Gmp-commit] /var/hg/gmp-5.0: 3 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Thu Jun 16 12:22:28 CEST 2011


details:   /var/hg/gmp-5.0/rev/f2696e1e4635
changeset: 13483:f2696e1e4635
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jun 16 12:17:02 2011 +0200
description:
(GMP_ASM_RODATA): Fix typo in 2011-04-10 change.

details:   /var/hg/gmp-5.0/rev/1227f07c005e
changeset: 13484:1227f07c005e
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jun 16 12:21:54 2011 +0200
description:
Surround tr ranges with [] for portability.

details:   /var/hg/gmp-5.0/rev/03ed209dd7ef
changeset: 13485:03ed209dd7ef
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jun 16 12:22:24 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog    |   6 ++++++
 acinclude.m4 |   4 ++--
 configure.in |  12 ++++++------
 3 files changed, 14 insertions(+), 8 deletions(-)

diffs (84 lines):

diff -r 5d21f3c2cd7f -r 03ed209dd7ef ChangeLog
--- a/ChangeLog	Sat May 07 20:23:27 2011 +0200
+++ b/ChangeLog	Thu Jun 16 12:22:24 2011 +0200
@@ -1,3 +1,9 @@
+2011-06-16  Torbjorn Granlund  <tege at gmplib.org>
+
+	* acinclude.m4 (GMP_ASM_RODATA): Fix typo in 2011-04-10 change.
+
+	* configure.in: Surround tr ranges with [] for portability.
+
 2011-05-07  Torbjorn Granlund  <tege at gmplib.org>
 
 	* Version 5.0.2 released.
diff -r 5d21f3c2cd7f -r 03ed209dd7ef acinclude.m4
--- a/acinclude.m4	Sat May 07 20:23:27 2011 +0200
+++ b/acinclude.m4	Thu Jun 16 12:22:24 2011 +0200
@@ -1941,8 +1941,8 @@
 esac
 
 cat >conftest.c <<EOF
-extern const int foo[];		/* Suppresses C++'s suppression of foo */
-const int foo[] = {1,2,3};
+extern const int foo[[]];		/* Suppresses C++'s suppression of foo */
+const int foo[[]] = {1,2,3};
 EOF
 echo "Test program:" >&AC_FD_CC
 cat conftest.c >&AC_FD_CC
diff -r 5d21f3c2cd7f -r 03ed209dd7ef configure.in
--- a/configure.in	Sat May 07 20:23:27 2011 +0200
+++ b/configure.in	Thu Jun 16 12:22:24 2011 +0200
@@ -4,7 +4,7 @@
 define(GMP_COPYRIGHT,[[
 
 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
-2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library.
 
@@ -2673,7 +2673,7 @@
   echo "/* variable thresholds */" >>fat.h
   for tmp_tn in $fat_thresholds; do
     echo "#undef  $tmp_tn" >>fat.h
-    echo "#define $tmp_tn  CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
+    echo "#define $tmp_tn  CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h
   done
 
   echo "
@@ -2689,7 +2689,7 @@
     echo "    p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
   done
   for tmp_tn in $fat_thresholds; do
-    tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
+    tmp_field_name=`echo $tmp_tn | tr [[A-Z]] [[a-z]]`
     echo "    p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
   done
   echo "  } while (0)" >>fat.h
@@ -2703,7 +2703,7 @@
     echo "    ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
   done
   for tmp_tn in $fat_thresholds; do
-    tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
+    tmp_field_name=`echo $tmp_tn | tr [[A-Z]] [[a-z]]`
     echo "    ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
   done
   echo "  } while (0)" >>fat.h
@@ -2713,7 +2713,7 @@
 #define ITERATE_FAT_THRESHOLDS() \\
   do { \\" >>fat.h
   for tmp_tn in $fat_thresholds; do
-    tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
+    tmp_field_name=`echo $tmp_tn | tr [[A-Z]] [[a-z]]`
     echo "    ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
   done
   echo "  } while (0)" >>fat.h
@@ -2749,7 +2749,7 @@
         if test -n "$tmp_thresh"; then
           THRESH_ASM_SETUP=["${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
 "]
-          CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
+          CPUVEC_SETUP="$CPUVEC_SETUP    decided_cpuvec.`echo $tmp_tn | tr [[A-Z]] [[a-z]]` = $tmp_thresh; \\
 "
           eval tmp_limit=\$${tmp_tn}_LIMIT
           if test -z "$tmp_limit"; then


More information about the gmp-commit mailing list