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

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


details:   /var/hg/gmp/rev/320357029840
changeset: 14202:320357029840
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jun 16 12:13:13 2011 +0200
description:
Surround tr ranges with [] for portability.

details:   /var/hg/gmp/rev/1fd0181bb770
changeset: 14203:1fd0181bb770
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jun 16 12:15:23 2011 +0200
description:
(GMP_ASM_RODATA): Fix typo in 2011-04-20 change.

details:   /var/hg/gmp/rev/28a97f01334d
changeset: 14204:28a97f01334d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Jun 16 12:22:15 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog    |   6 ++++++
 acinclude.m4 |   4 ++--
 configure.in |  10 +++++-----
 3 files changed, 13 insertions(+), 7 deletions(-)

diffs (75 lines):

diff -r 86955a410da3 -r 28a97f01334d ChangeLog
--- a/ChangeLog	Wed May 25 22:16:58 2011 +0200
+++ b/ChangeLog	Thu Jun 16 12:22:15 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-20 change.
+
+	* configure.in: Surround tr ranges with [] for portability.
+
 2011-05-25  Niels Möller  <nisse at lysator.liu.se>
 
 	* tune/tune-gcd-p.c (search): New function to search for minimum.
diff -r 86955a410da3 -r 28a97f01334d acinclude.m4
--- a/acinclude.m4	Wed May 25 22:16:58 2011 +0200
+++ b/acinclude.m4	Thu Jun 16 12:22:15 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 86955a410da3 -r 28a97f01334d configure.in
--- a/configure.in	Wed May 25 22:16:58 2011 +0200
+++ b/configure.in	Thu Jun 16 12:22:15 2011 +0200
@@ -2697,7 +2697,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 "
@@ -2713,7 +2713,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
@@ -2727,7 +2727,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
@@ -2737,7 +2737,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
@@ -2773,7 +2773,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