nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

AvPAD_NAMELIST broke c.t 12 #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
bisect 5.19.2 to .3 with
./perl -Ilib -Ilib/auto ext/B-C/script/perlcc --Wc=-I. --Wc=-L. -O3 -r -e'my 
$i_i=q(ok); eval "print \$i_i\n"; print ""' -S -o ccode12

7db6405c07905ec5 added SVpad_NAMELIST with 

PadnamelistMAXNAMED(PL_comppad_name) = offset in pad_alloc_name()

and #define PadnamelistMAXNAMED(pnl) ((XPVAV*) SvANY(pnl))->xmg_u.xmg_hash_index

bisect script: (in ../B-C with the current compiler, d is `pwd`)

#!/bin/sh
d=/usr/src/perl/blead/perl-git
p="$d/perl"
git reset --hard
echo ext/B-C >> .gitignore
git clean -dxf >/dev/null 2>/dev/null
#cp -r /usr/src/perl/blead/B-C $d/ext/
rm -f *.o Makefile config.sh config.h Policy.sh 2>/dev/null >/dev/null
./Configure -Dusedevel -des -Uuseshrplib -Dinstallman1dir=none 
-Dinstallman3dir=none -Dinstallsiteman1dir=none -Dinstallsiteman3dir=none 
>/dev/null 2>/dev/null
test -f config.sh || exit 125
rsync -a --exclude=.git /usr/src/perl/blead/B-C/ $d/ext/B-C/
#sed -i -e's,ext = $(dynamic_ext) $(static_ext) $(nonxs_ext),ext = 
lib/auto/attributes/attributes.so $(static_ext) $(nonxs_ext),' Makefile
sed -i -e's,lib/auto/B/C/C.so ,,' Makefile
#sed -i -e's,lib/auto/Encode/Encode.so ,,' Makefile
make test_prep >log.make 2>log.make-err
[ -x ./perl ] || exit 125
cd ext/B-C
export PERL5LIB="$d/lib/auto:$d/lib" 
#:$d/dist/Cwd:$d/dist/Cwd/lib:$d/dist/IO/lib:$d/dist/IO"
../../perl -I$d/lib -I$d/lib/auto Makefile.PL PERL_CORE=1
make PERL_CORE=1 pm_to_blib linkext blibdirs script/perlcc
cd -

res=`./perl -Ilib -Ilib/auto ext/B-C/script/perlcc --Wc=-I. --Wc=-L. -O3 -r 
-e'my $i_i=q(ok); eval "print \$i_i\n"; print ""' -o ccode12`
#res=`./perl -Ilib -Ilib/auto ext/B-C/script/perlcc --Wc=-I. --Wc=-L. -O3 -r 
ext/B-C/t/attr259.pl`
#res=`./perl -Ilib -Ilib/auto ext/B-C/script/perlcc --Wc=-I. --Wc=-L. -O3 -r 
--staticxs ext/B-C/t/attr260.pl`
ret=$?

[ x$res = xok ] || ret=129
[ $ret -gt 127 ] && ret=127
git checkout makedepend.SH
exit $ret

Original issue reported on code.google.com by reini.urban on 31 Dec 2013 at 2:10

GoogleCodeExporter commented 9 years ago
Fixed with 1.42_68 commit 363f48e708af966fd1f2f4bd1cdec349d8a7abf7
Author: Reini Urban <rurban@cpanel.net>
Date:   Tue Dec 31 08:29:17 2013 -0600

    1.42_68 C: fix #268 AvPAD_NAMELIST broke c.t 12

    PadnamelistMAXNAMED(comppad_name) was not set to the length of the comppad_name.
    eval string works now again for blead.

Original comment by reini.urban on 31 Dec 2013 at 3:26