gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. 6735db9861e325


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. 6735db9861e32576ece279f7e9e0ecaa314786a2
Date: Tue, 04 Oct 2011 19:58:19 +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 "gawk".

The branch, gawk-4.0-stable has been updated
       via  6735db9861e32576ece279f7e9e0ecaa314786a2 (commit)
      from  953f97ddd184f3dfb1ce16ee2965012965b17fac (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.sv.gnu.org/cgit/gawk.git/commit/?id=6735db9861e32576ece279f7e9e0ecaa314786a2

commit 6735db9861e32576ece279f7e9e0ecaa314786a2
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Oct 4 21:57:57 2011 +0200

    Make gawk_mb_cur_max compile time constant if no mbs support.

diff --git a/ChangeLog b/ChangeLog
index 6bf7901..f1a8a8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-10-04         Arnold D. Robbins     <address@hidden>
+
+       * awk.h, main.c (gawk_mb_cur_max): Make it a constant 1 when
+       MBS_SUPPORT isn't available to allow GCC dead code constant
+       expression computation and dead code elimination to help out.
+
 2011-10-02         Arnold D. Robbins     <address@hidden>
 
        * io.c (rsnullscan, get_a_record): Fix the cases where terminators
diff --git a/awk.h b/awk.h
index 2f3ccdd..0c95472 100644
--- a/awk.h
+++ b/awk.h
@@ -935,7 +935,7 @@ extern int do_lint_old;
 #if MBS_SUPPORT
 extern int gawk_mb_cur_max;
 #else
-extern const int gawk_mb_cur_max;
+#define gawk_mb_cur_max        (1)
 #endif
 
 #if defined (HAVE_GETGROUPS) && defined(NGROUPS_MAX) && NGROUPS_MAX > 0
diff --git a/main.c b/main.c
index 66d4b9b..43a3e4a 100644
--- a/main.c
+++ b/main.c
@@ -150,8 +150,6 @@ int use_lc_numeric = FALSE; /* obey locale for decimal 
point */
 
 #if MBS_SUPPORT
 int gawk_mb_cur_max;           /* MB_CUR_MAX value, see comment in main() */
-#else
-const int gawk_mb_cur_max = 1;
 #endif
 
 FILE *output_fp;               /* default output for debugger */

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

Summary of changes:
 ChangeLog |    6 ++++++
 awk.h     |    2 +-
 main.c    |    2 --
 3 files changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]