gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, feature/pma2, updated. gawk-4.1.0-4749-gd78e8b44


From: Arnold Robbins
Subject: [SCM] gawk branch, feature/pma2, updated. gawk-4.1.0-4749-gd78e8b44
Date: Tue, 14 Jun 2022 15:44:09 -0400 (EDT)

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, feature/pma2 has been updated
       via  d78e8b44f8b470d894b46a0ff4cafc88ce8eed29 (commit)
       via  edc9ae773547c911d38b4a6fcb71946762df1e3d (commit)
      from  37dbf039eee81652d647aa2783f4ea4cb0266f52 (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=d78e8b44f8b470d894b46a0ff4cafc88ce8eed29

commit d78e8b44f8b470d894b46a0ff4cafc88ce8eed29
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Tue Jun 14 22:43:52 2022 +0300

    Doc updates.

diff --git a/doc/ChangeLog b/doc/ChangeLog
index ca89074e..dacfabe4 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,6 +1,7 @@
-2022-06-13         Arnold D. Robbins     <arnold@skeeve.com>
+2022-06-14         Arnold D. Robbins     <arnold@skeeve.com>
 
        * gawktexi.in (Persistent  Memory): Document --disable-pma.
+       Document that Mac OS works.
 
 2022-06-13         Arnold D. Robbins     <arnold@skeeve.com>
 
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index 71eb44c0..5ef981c5 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -29859,24 +29859,25 @@ executable.  This also means that to use the 
persistent memory, you must
 use the same executable from run to run.
 
 As of this writing, persistent memory has only been tested on GNU/Linux
-systems. On others, your mileage may vary, and/or you may need to
-investigate how to make it work for you.
+and Mac OS systems. On others, your mileage may vary, and/or you may
+need to investigate how to make it work for you.
 
 To use persistent memory, follow these steps:
 
 @enumerate 1
 @item
-Create a new, empty sparse file of the desired size. For example, four 
gigabytes.
-On a GNU/Linux system, you can use the @command{truncate} command:
+Create a new, empty sparse file of the desired size. For example, four
+gigabytes.  On a GNU/Linux system, you can use the @command{truncate}
+command:
 
 @example
 $ @kbd{truncate -s 4G data.pma}
 @end example
 
 @item
-Provide the path to the data file in the @env{GAWK_PERSIST_FILE} environment 
variable.
-This is best done by placing the value in the environment just for the run of 
@command{gawk},
-like so:
+Provide the path to the data file in the @env{GAWK_PERSIST_FILE}
+environment variable.  This is best done by placing the value in the
+environment just for the run of @command{gawk}, like so:
 
 @example
 $ @kbd{GAWK_PERSIST_FILE=data.pma ./gawk 'BEGIN @{ print ++i @}'}
@@ -29894,27 +29895,28 @@ $ @kbd{GAWK_PERSIST_FILE=data.pma ./gawk 'BEGIN @{ 
print ++i @}'}
 @end example
 
 @noindent
-As shown, in subsequent runs using the same data file, the values of 
@command{gawk}'s
-variables are preserved.
+As shown, in subsequent runs using the same data file, the values of
+@command{gawk}'s variables are preserved.
 
 @end enumerate
 
-Interestingly, the program that you execute need not be the same from run to 
run;
-the persistent store only maintains the values of variables and arrays, not
-the totality of @command{gawk}'s internal state.
+Interestingly, the program that you execute need not be the same from
+run to run; the persistent store only maintains the values of variables
+and arrays, not the totality of @command{gawk}'s internal state.
 
-As noted earlier, support for persistent memory is @emph{experimental}.  If it
-becomes burdensome,@footnote{Meaning, there are too many bug reports, or
-too many strange differences in behavior from when @command{gawk} is run
-normally.} then the feature will be removed.
+As noted earlier, support for persistent memory is @emph{experimental}.
+If it becomes burdensome,@footnote{Meaning, there are too many
+bug reports, or too many strange differences in behavior from when
+@command{gawk} is run normally.} then the feature will be removed.
 
-You can disable the use of the persistent memory allocator in @command{gawk}
-with the @option{--disable-pma} to the @command{configure} command at the
-time that you are building @command{gawk} (@pxref{Unix Installation}).
+You can disable the use of the persistent memory allocator in
+@command{gawk} with the @option{--disable-pma} to the @command{configure}
+command at the time that you are building @command{gawk} (@pxref{Unix
+Installation}).
 
-Here are articles and web links that provide more information
-about persistent memory and why it's useful in a scripting language
-like @command{gawk}.
+Here are articles and web links that provide more information about
+persistent memory and why it's useful in a scripting language like
+@command{gawk}.
 
 @table @asis
 @item @uref{https://web.eecs.umich.edu/~tpkelly/pma/}

http://git.sv.gnu.org/cgit/gawk.git/commit/?id=edc9ae773547c911d38b4a6fcb71946762df1e3d

commit edc9ae773547c911d38b4a6fcb71946762df1e3d
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Tue Jun 14 22:40:58 2022 +0300

    Add Mac OS support to configuration machinery.

diff --git a/configure b/configure
index 8153103e..926d561c 100755
--- a/configure
+++ b/configure
@@ -12571,6 +12571,10 @@ printf "%s\n" "#define USE_PERSISTENT_MALLOC 1" 
>>confdefs.h
                                ;;
                        esac
                        ;;
+               *darwin*)
+                       LDFLAGS="${LDFLAGS} -Xlinker -no_pie"
+                       export LDFLAGS
+                       ;;
                # Other OS's go here...
                *)
                        # For now, play it safe
diff --git a/m4/ChangeLog b/m4/ChangeLog
index 37aca2ef..8872a909 100644
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -2,6 +2,7 @@
 
        * pma.m4: Put -no-pie inside additional check for gcc and clang.
        Tinycc and PCC are no-PIE anyway.  Add support for --disable-pma.
+       Add the right magic for Mac OS.
 
 2022-06-13         Arnold D. Robbins     <arnold@skeeve.com>
 
diff --git a/m4/pma.m4 b/m4/pma.m4
index 2c9bfc39..4260c4e8 100644
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -30,6 +30,10 @@ then
                                ;;
                        esac
                        ;;
+               *darwin*)
+                       LDFLAGS="${LDFLAGS} -Xlinker -no_pie"
+                       export LDFLAGS
+                       ;;
                # Other OS's go here...
                *)
                        # For now, play it safe

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

Summary of changes:
 configure       |  4 ++++
 doc/ChangeLog   |  3 ++-
 doc/gawktexi.in | 46 ++++++++++++++++++++++++----------------------
 m4/ChangeLog    |  1 +
 m4/pma.m4       |  4 ++++
 5 files changed, 35 insertions(+), 23 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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