develooper Front page | perl.perl5.porters | Postings from September 2013

Configure updated (was Re: [perl.git] branch blead, updated.v5.19.3-580-gdb433f4)

Thread Next
From:
Nicholas Clark
Date:
September 16, 2013 10:18
Subject:
Configure updated (was Re: [perl.git] branch blead, updated.v5.19.3-580-gdb433f4)
Message ID:
20130916101814.GI74204@plum.flirble.org
On Mon, Sep 16, 2013 at 12:10:03PM +0200, Nicholas Clark wrote:
> In perl.git, the branch blead has been updated

> commit 7cc43d2f57e9404b3e34fdeca08033de4becf0f3
> Author: Brian Fraser <fraserbn@gmail.com>
> Date:   Wed Sep 11 12:22:45 2013 +0200
> 
>     Eliminate the use of voidflags from Configure's pointer size determination.
>     
>     This should permit metaconfig to drop the entire voidflags logic from
>     Configure and the config.sh related files.
> 
> M	Configure

In terms of metaconfig, I think that that becomes this:

diff --git a/U/compline/ptrsize.U b/U/compline/ptrsize.U
index 3b4f55c..33714fe 100644
--- a/U/compline/ptrsize.U
+++ b/U/compline/ptrsize.U
@@ -15,7 +15,7 @@
 ?RCS: Revision 3.0  1993/08/18  12:09:37  ram
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
-?MAKE:ptrsize: cat rm_try Myread Compile voidflags run use64bitall i_stdlib d_quad
+?MAKE:ptrsize: cat rm_try Myread Compile run use64bitall i_stdlib d_quad
 ?MAKE:	-pick add $@ %<
 ?S:ptrsize:
 ?S:	This variable contains the value of the PTRSIZE symbol, which
@@ -36,11 +36,6 @@ echo " "
 case "$ptrsize" in
 '')
 	echo "Checking to see how big your pointers are..." >&4
-	if test "$voidflags" -gt 7; then
-		echo '#define VOID_PTR char *' > try.c
-	else
-		echo '#define VOID_PTR void *' > try.c
-	fi
 	$cat >>try.c <<EOCP
 #include <stdio.h>
 #$i_stdlib I_STDLIB
@@ -49,7 +44,7 @@ case "$ptrsize" in
 #endif
 int main()
 {
-    printf("%d\n", (int)sizeof(VOID_PTR));
+    printf("%d\n", (int)sizeof(void *));
     exit(0);
 }
 EOCP


If I have that right, by removing that reference to ptrsize, then nothing
in the codebase makes use of voidflags or voidused, so metaconfig should drop
them from the regenerated files.

Nicholas Clark

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About