From MAILER-DAEMON Sun Aug 02 10:29:32 2015
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ZLuGa-00062u-I3
	for mharc-grep-commit@gnu.org; Sun, 02 Aug 2015 10:29:32 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54420)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1ZLuGX-00062Y-DD
	for grep-commit@gnu.org; Sun, 02 Aug 2015 10:29:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1ZLuGV-0005EI-QT
	for grep-commit@gnu.org; Sun, 02 Aug 2015 10:29:29 -0400
Received: from vcs.savannah.gnu.org ([140.186.70.72]:36619)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1ZLuGV-0005EA-Mp
	for grep-commit@gnu.org; Sun, 02 Aug 2015 10:29:27 -0400
Received: from meyering by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <jim@meyering.net>) id 1ZLuGR-0008FE-UI
	for grep-commit@gnu.org; Sun, 02 Aug 2015 14:29:25 +0000
Date: Sun, 02 Aug 2015 14:29:23 +0000
Message-Id: <E1ZLuGR-0008FE-UI@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.21-59-g3ba6c96
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: bfa9df03034ccfb65da9950cf1e1207faef1213c
X-Git-Newrev: 3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa
From: Jim Meyering <jim@meyering.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 140.186.70.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: bug-grep@gnu.org
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 02 Aug 2015 14:29:31 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa (commit)
       via  ce898d98d5ff0ffbd988c993d2b3f1e414a6df2a (commit)
       via  ccb6295d23669d5ee3bb2bbc37bf85873805d484 (commit)
      from  bfa9df03034ccfb65da9950cf1e1207faef1213c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa


commit 3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa
Author: Jim Meyering <meyering@fb.com>
Date:   Sat Aug 1 14:38:30 2015 -0700

    tests: mb-non-UTF8-performance: use new function
    
    * tests/mb-non-UTF8-performance: Rewrite to use
    the user-time measuring function in init.cfg.

diff --git a/tests/mb-non-UTF8-performance b/tests/mb-non-UTF8-performance
index 42bb5b5..228361d 100755
--- a/tests/mb-non-UTF8-performance
+++ b/tests/mb-non-UTF8-performance
@@ -19,31 +19,20 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
-require_timeout_
-require_hi_res_time_
 
 fail=0
 
-yes $(printf '%078d' 0) | head -50000 > in || framework_failure_
-
-start=$(hi_res_time_)
-LC_ALL=C grep -i foobar in; st=$?
-stop=$(hi_res_time_)
-
-# Use a multiple of the LC_ALL=C duration as the timeout for the JP/EUC test.
-# A multiple of 3 seems to be enough for i5,i7, but AMD needs >25.
-# Use an integer; some 'timeout' implementations have trouble with
-# floating-point in JP_EUC locales.
-timeout=$(
-  $AWK 'BEGIN { print 1 + int (30 * ('$stop' - '$start'))}' < /dev/null
-)
-
-test $st = 1 || fail=1
+# Make this large enough so that even on high-end systems
+# it incurs at least 5-10ms of user time.
+yes $(printf '%078d' 0) | head -400000 > in || framework_failure_
 
+ubyte_ms=$(LC_ALL=C user_time_ 1 grep -i foobar in) || fail=1
 require_JP_EUC_locale_
+mbyte_ms=$(user_time_ 1 grep -i foobar in) || fail=1
 
-# Expect no match, i.e., exit status of 1.  Anything else is an error.
-timeout $timeout grep -i foobar in; st=$?
-test $st = 1 || fail=1
+# The duration of the multi-byte run must be no more than 30 times
+# that of the single-byte one.
+# A multiple of 3 seems to be enough for i5,i7, but AMD needs >25.
+expr $ubyte_ms '<' $mbyte_ms / 30 && fail=1
 
 Exit $fail

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=ce898d98d5ff0ffbd988c993d2b3f1e414a6df2a


commit 3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa
Author: Jim Meyering <meyering@fb.com>
Date:   Sat Aug 1 14:38:30 2015 -0700

    tests: mb-non-UTF8-performance: use new function
    
    * tests/mb-non-UTF8-performance: Rewrite to use
    the user-time measuring function in init.cfg.

diff --git a/tests/mb-non-UTF8-performance b/tests/mb-non-UTF8-performance
index 42bb5b5..228361d 100755
--- a/tests/mb-non-UTF8-performance
+++ b/tests/mb-non-UTF8-performance
@@ -19,31 +19,20 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
-require_timeout_
-require_hi_res_time_
 
 fail=0
 
-yes $(printf '%078d' 0) | head -50000 > in || framework_failure_
-
-start=$(hi_res_time_)
-LC_ALL=C grep -i foobar in; st=$?
-stop=$(hi_res_time_)
-
-# Use a multiple of the LC_ALL=C duration as the timeout for the JP/EUC test.
-# A multiple of 3 seems to be enough for i5,i7, but AMD needs >25.
-# Use an integer; some 'timeout' implementations have trouble with
-# floating-point in JP_EUC locales.
-timeout=$(
-  $AWK 'BEGIN { print 1 + int (30 * ('$stop' - '$start'))}' < /dev/null
-)
-
-test $st = 1 || fail=1
+# Make this large enough so that even on high-end systems
+# it incurs at least 5-10ms of user time.
+yes $(printf '%078d' 0) | head -400000 > in || framework_failure_
 
+ubyte_ms=$(LC_ALL=C user_time_ 1 grep -i foobar in) || fail=1
 require_JP_EUC_locale_
+mbyte_ms=$(user_time_ 1 grep -i foobar in) || fail=1
 
-# Expect no match, i.e., exit status of 1.  Anything else is an error.
-timeout $timeout grep -i foobar in; st=$?
-test $st = 1 || fail=1
+# The duration of the multi-byte run must be no more than 30 times
+# that of the single-byte one.
+# A multiple of 3 seems to be enough for i5,i7, but AMD needs >25.
+expr $ubyte_ms '<' $mbyte_ms / 30 && fail=1
 
 Exit $fail

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=ccb6295d23669d5ee3bb2bbc37bf85873805d484


commit 3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa
Author: Jim Meyering <meyering@fb.com>
Date:   Sat Aug 1 14:38:30 2015 -0700

    tests: mb-non-UTF8-performance: use new function
    
    * tests/mb-non-UTF8-performance: Rewrite to use
    the user-time measuring function in init.cfg.

diff --git a/tests/mb-non-UTF8-performance b/tests/mb-non-UTF8-performance
index 42bb5b5..228361d 100755
--- a/tests/mb-non-UTF8-performance
+++ b/tests/mb-non-UTF8-performance
@@ -19,31 +19,20 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
-require_timeout_
-require_hi_res_time_
 
 fail=0
 
-yes $(printf '%078d' 0) | head -50000 > in || framework_failure_
-
-start=$(hi_res_time_)
-LC_ALL=C grep -i foobar in; st=$?
-stop=$(hi_res_time_)
-
-# Use a multiple of the LC_ALL=C duration as the timeout for the JP/EUC test.
-# A multiple of 3 seems to be enough for i5,i7, but AMD needs >25.
-# Use an integer; some 'timeout' implementations have trouble with
-# floating-point in JP_EUC locales.
-timeout=$(
-  $AWK 'BEGIN { print 1 + int (30 * ('$stop' - '$start'))}' < /dev/null
-)
-
-test $st = 1 || fail=1
+# Make this large enough so that even on high-end systems
+# it incurs at least 5-10ms of user time.
+yes $(printf '%078d' 0) | head -400000 > in || framework_failure_
 
+ubyte_ms=$(LC_ALL=C user_time_ 1 grep -i foobar in) || fail=1
 require_JP_EUC_locale_
+mbyte_ms=$(user_time_ 1 grep -i foobar in) || fail=1
 
-# Expect no match, i.e., exit status of 1.  Anything else is an error.
-timeout $timeout grep -i foobar in; st=$?
-test $st = 1 || fail=1
+# The duration of the multi-byte run must be no more than 30 times
+# that of the single-byte one.
+# A multiple of 3 seems to be enough for i5,i7, but AMD needs >25.
+expr $ubyte_ms '<' $mbyte_ms / 30 && fail=1
 
 Exit $fail

-----------------------------------------------------------------------

Summary of changes:
 tests/init.cfg                |   28 ++++++++++++++++++++++++++++
 tests/long-pattern-perf       |   24 ++++++------------------
 tests/mb-non-UTF8-performance |   29 +++++++++--------------------
 3 files changed, 43 insertions(+), 38 deletions(-)


hooks/post-receive
-- 
grep


From MAILER-DAEMON Wed Aug 12 10:48:27 2015
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ZPXKN-0007Cp-9O
	for mharc-grep-commit@gnu.org; Wed, 12 Aug 2015 10:48:27 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43557)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1ZPXKK-0007Cc-6w
	for grep-commit@gnu.org; Wed, 12 Aug 2015 10:48:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1ZPXKI-0007zE-Jy
	for grep-commit@gnu.org; Wed, 12 Aug 2015 10:48:24 -0400
Received: from vcs.savannah.gnu.org ([208.118.235.72]:58484)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <eggert@cs.ucla.edu>) id 1ZPXKI-0007zA-Fn
	for grep-commit@gnu.org; Wed, 12 Aug 2015 10:48:22 -0400
Received: from eggert by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <eggert@cs.ucla.edu>) id 1ZPXKH-000285-If
	for grep-commit@gnu.org; Wed, 12 Aug 2015 14:48:21 +0000
Date: Wed, 12 Aug 2015 14:48:21 +0000
Message-Id: <E1ZPXKH-000285-If@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.21-62-g936c904
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa
X-Git-Newrev: 936c904a79285c42adbfc67c508b27d5717c2936
From: Paul Eggert <eggert@cs.ucla.edu>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: bug-grep@gnu.org
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Aug 2015 14:48:26 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  936c904a79285c42adbfc67c508b27d5717c2936 (commit)
       via  5700656ed2ec6a93e0a5c825b445f639d21a0d6e (commit)
       via  c797046c7c13c2647182b919a79a4c5b4ecf82b1 (commit)
      from  3ba6c9655a1c2465e6bd6e8453886eb579ee0eaa (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=936c904a79285c42adbfc67c508b27d5717c2936


commit 936c904a79285c42adbfc67c508b27d5717c2936
Author: Norihiro Tanaka <noritnk@kcn.ne.jp>
Date:   Wed Aug 12 07:35:03 2015 -0700

    grep: remove fgrep code for case insensitive match
    
    The fgrep matcher is no longer called in case insensitive matching,
    so remove the code to support it.
    * src/kwsearch.c (mb_case_map_apply): Remove function.
    (Fexecute): Remove now-unused code.

diff --git a/src/kwsearch.c b/src/kwsearch.c
index 04d1b6d..5a91eb6 100644
--- a/src/kwsearch.c
+++ b/src/kwsearch.c
@@ -37,14 +37,10 @@ void
 Fcompile (char const *pattern, size_t size)
 {
   size_t total = size;
-  mb_len_map_t *map = NULL;
-  char const *pat = (match_icase && MB_CUR_MAX > 1
-                     ? mbtoupper (pattern, &total, &map)
-                     : pattern);
 
   kwsinit (&kwset);
 
-  char const *p = pat;
+  char const *p = pattern;
   do
     {
       size_t len;
@@ -81,26 +77,6 @@ Fcompile (char const *pattern, size_t size)
   kwsprep (kwset);
 }
 
-/* Apply the MAP (created by mbtoupper) to the uppercase-buffer-relative
-   *OFF and *LEN, converting them to be relative to the original buffer.  */
-
-static void
-mb_case_map_apply (mb_len_map_t const *map, size_t *off, size_t *len)
-{
-  if (map)
-    {
-      size_t off_incr = 0;
-      size_t len_incr = 0;
-      size_t k;
-      for (k = 0; k < *off; k++)
-        off_incr += map[k];
-      for (; k < *off + *len; k++)
-        len_incr += map[k];
-      *off += off_incr;
-      *len += len_incr;
-    }
-}
-
 size_t
 Fexecute (char const *buf, size_t size, size_t *match_size,
           char const *start_ptr)
@@ -110,18 +86,6 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
   char eol = eolbyte;
   struct kwsmatch kwsmatch;
   size_t ret_val;
-  mb_len_map_t *map = NULL;
-
-  if (MB_CUR_MAX > 1)
-    {
-      if (match_icase)
-        {
-          char *case_buf = mbtoupper (buf, &size, &map);
-          if (start_ptr)
-            start_ptr = case_buf + (start_ptr - buf);
-          buf = case_buf;
-        }
-    }
 
   for (mb_start = beg = start_ptr ? start_ptr : buf; beg <= buf + size; beg++)
     {
@@ -194,7 +158,6 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
   len = end - beg;
  success_in_beg_and_len:;
   size_t off = beg - buf;
-  mb_case_map_apply (map, &off, &len);
 
   *match_size = len;
   ret_val = off;

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=5700656ed2ec6a93e0a5c825b445f639d21a0d6e


commit 936c904a79285c42adbfc67c508b27d5717c2936
Author: Norihiro Tanaka <noritnk@kcn.ne.jp>
Date:   Wed Aug 12 07:35:03 2015 -0700

    grep: remove fgrep code for case insensitive match
    
    The fgrep matcher is no longer called in case insensitive matching,
    so remove the code to support it.
    * src/kwsearch.c (mb_case_map_apply): Remove function.
    (Fexecute): Remove now-unused code.

diff --git a/src/kwsearch.c b/src/kwsearch.c
index 04d1b6d..5a91eb6 100644
--- a/src/kwsearch.c
+++ b/src/kwsearch.c
@@ -37,14 +37,10 @@ void
 Fcompile (char const *pattern, size_t size)
 {
   size_t total = size;
-  mb_len_map_t *map = NULL;
-  char const *pat = (match_icase && MB_CUR_MAX > 1
-                     ? mbtoupper (pattern, &total, &map)
-                     : pattern);
 
   kwsinit (&kwset);
 
-  char const *p = pat;
+  char const *p = pattern;
   do
     {
       size_t len;
@@ -81,26 +77,6 @@ Fcompile (char const *pattern, size_t size)
   kwsprep (kwset);
 }
 
-/* Apply the MAP (created by mbtoupper) to the uppercase-buffer-relative
-   *OFF and *LEN, converting them to be relative to the original buffer.  */
-
-static void
-mb_case_map_apply (mb_len_map_t const *map, size_t *off, size_t *len)
-{
-  if (map)
-    {
-      size_t off_incr = 0;
-      size_t len_incr = 0;
-      size_t k;
-      for (k = 0; k < *off; k++)
-        off_incr += map[k];
-      for (; k < *off + *len; k++)
-        len_incr += map[k];
-      *off += off_incr;
-      *len += len_incr;
-    }
-}
-
 size_t
 Fexecute (char const *buf, size_t size, size_t *match_size,
           char const *start_ptr)
@@ -110,18 +86,6 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
   char eol = eolbyte;
   struct kwsmatch kwsmatch;
   size_t ret_val;
-  mb_len_map_t *map = NULL;
-
-  if (MB_CUR_MAX > 1)
-    {
-      if (match_icase)
-        {
-          char *case_buf = mbtoupper (buf, &size, &map);
-          if (start_ptr)
-            start_ptr = case_buf + (start_ptr - buf);
-          buf = case_buf;
-        }
-    }
 
   for (mb_start = beg = start_ptr ? start_ptr : buf; beg <= buf + size; beg++)
     {
@@ -194,7 +158,6 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
   len = end - beg;
  success_in_beg_and_len:;
   size_t off = beg - buf;
-  mb_case_map_apply (map, &off, &len);
 
   *match_size = len;
   ret_val = off;

http://git.savannah.gnu.org/cgit/grep.git/commit/?id=c797046c7c13c2647182b919a79a4c5b4ecf82b1


commit 936c904a79285c42adbfc67c508b27d5717c2936
Author: Norihiro Tanaka <noritnk@kcn.ne.jp>
Date:   Wed Aug 12 07:35:03 2015 -0700

    grep: remove fgrep code for case insensitive match
    
    The fgrep matcher is no longer called in case insensitive matching,
    so remove the code to support it.
    * src/kwsearch.c (mb_case_map_apply): Remove function.
    (Fexecute): Remove now-unused code.

diff --git a/src/kwsearch.c b/src/kwsearch.c
index 04d1b6d..5a91eb6 100644
--- a/src/kwsearch.c
+++ b/src/kwsearch.c
@@ -37,14 +37,10 @@ void
 Fcompile (char const *pattern, size_t size)
 {
   size_t total = size;
-  mb_len_map_t *map = NULL;
-  char const *pat = (match_icase && MB_CUR_MAX > 1
-                     ? mbtoupper (pattern, &total, &map)
-                     : pattern);
 
   kwsinit (&kwset);
 
-  char const *p = pat;
+  char const *p = pattern;
   do
     {
       size_t len;
@@ -81,26 +77,6 @@ Fcompile (char const *pattern, size_t size)
   kwsprep (kwset);
 }
 
-/* Apply the MAP (created by mbtoupper) to the uppercase-buffer-relative
-   *OFF and *LEN, converting them to be relative to the original buffer.  */
-
-static void
-mb_case_map_apply (mb_len_map_t const *map, size_t *off, size_t *len)
-{
-  if (map)
-    {
-      size_t off_incr = 0;
-      size_t len_incr = 0;
-      size_t k;
-      for (k = 0; k < *off; k++)
-        off_incr += map[k];
-      for (; k < *off + *len; k++)
-        len_incr += map[k];
-      *off += off_incr;
-      *len += len_incr;
-    }
-}
-
 size_t
 Fexecute (char const *buf, size_t size, size_t *match_size,
           char const *start_ptr)
@@ -110,18 +86,6 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
   char eol = eolbyte;
   struct kwsmatch kwsmatch;
   size_t ret_val;
-  mb_len_map_t *map = NULL;
-
-  if (MB_CUR_MAX > 1)
-    {
-      if (match_icase)
-        {
-          char *case_buf = mbtoupper (buf, &size, &map);
-          if (start_ptr)
-            start_ptr = case_buf + (start_ptr - buf);
-          buf = case_buf;
-        }
-    }
 
   for (mb_start = beg = start_ptr ? start_ptr : buf; beg <= buf + size; beg++)
     {
@@ -194,7 +158,6 @@ Fexecute (char const *buf, size_t size, size_t *match_size,
   len = end - beg;
  success_in_beg_and_len:;
   size_t off = beg - buf;
-  mb_case_map_apply (map, &off, &len);
 
   *match_size = len;
   ret_val = off;

-----------------------------------------------------------------------

Summary of changes:
 src/dfa.c      |  261 +++++++++++---------------------------------------------
 src/kwsearch.c |   39 +--------
 2 files changed, 51 insertions(+), 249 deletions(-)


hooks/post-receive
-- 
grep


From MAILER-DAEMON Thu Aug 20 20:47:31 2015
Received: from list by lists.gnu.org with archive (Exim 4.71)
	id 1ZSaUV-0003VO-4k
	for mharc-grep-commit@gnu.org; Thu, 20 Aug 2015 20:47:31 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:53580)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1ZSDGk-0007fB-1z
	for grep-commit@gnu.org; Wed, 19 Aug 2015 19:59:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1ZSDGi-000530-Rx
	for grep-commit@gnu.org; Wed, 19 Aug 2015 19:59:45 -0400
Received: from vcs.savannah.gnu.org ([208.118.235.72]:54557)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@meyering.net>) id 1ZSDGi-00052s-G4
	for grep-commit@gnu.org; Wed, 19 Aug 2015 19:59:44 -0400
Received: from meyering by vcs.savannah.gnu.org with local (Exim 4.72)
	(envelope-from <jim@meyering.net>) id 1ZSDGh-0003yu-TN
	for grep-commit@gnu.org; Wed, 19 Aug 2015 23:59:44 +0000
Date: Wed, 19 Aug 2015 23:59:43 +0000
Message-Id: <E1ZSDGh-0003yu-TN@vcs.savannah.gnu.org>
To: grep-commit@gnu.org
Subject: grep branch, master, updated. v2.21-63-g8a33cde
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 936c904a79285c42adbfc67c508b27d5717c2936
X-Git-Newrev: 8a33cdeba4ba032f3d0efebf230b86971c27e158
From: Jim Meyering <jim@meyering.net>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.72
X-BeenThere: grep-commit@gnu.org
X-Mailman-Version: 2.1.14
Precedence: list
Reply-To: bug-grep@gnu.org
List-Id: CVS commit notices for GNU grep <grep-commit.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/grep-commit>
List-Post: <mailto:grep-commit@gnu.org>
List-Help: <mailto:grep-commit-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/grep-commit>,
	<mailto:grep-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Aug 2015 00:47:28 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  8a33cdeba4ba032f3d0efebf230b86971c27e158 (commit)
      from  936c904a79285c42adbfc67c508b27d5717c2936 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=8a33cdeba4ba032f3d0efebf230b86971c27e158


commit 8a33cdeba4ba032f3d0efebf230b86971c27e158
Author: Norihiro Tanaka <noritnk@kcn.ne.jp>
Date:   Tue Aug 11 00:37:00 2015 +0900

    grep: avoid use of uninitialized variable
    
    EGexecute would use "backref" uninitialized.
    While that could have no bearing on correctness, it could
    impact performance, via an unnecessary use of regexp.
    * src/dfasearch.c (EGexecute): Initialize backref.
    Reported as http://debbugs.gnu.org/21273
    Introduced by commit v2.21-55-gea0ebaa.

diff --git a/src/dfasearch.c b/src/dfasearch.c
index 8b8af06..de51321 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -207,7 +207,6 @@ EGexecute (char const *buf, size_t size, size_t *match_size,
 {
   char const *buflim, *beg, *end, *ptr, *match, *best_match, *mb_start;
   char eol = eolbyte;
-  int backref;
   regoff_t start;
   size_t len, best_len;
   struct kwsmatch kwsm;
@@ -227,6 +226,7 @@ EGexecute (char const *buf, size_t size, size_t *match_size,
           char const *next_beg, *dfa_beg = beg;
           size_t count = 0;
           bool exact_kwset_match = false;
+          int backref = 0;
 
           /* Try matching with KWset, if it's defined.  */
           if (kwset)

-----------------------------------------------------------------------

Summary of changes:
 src/dfasearch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
grep


