perl.git
5 years agoPrepare Module::CoreList for 5.21.5, expected on 2014-10-20
Steve Hay [Sat, 20 Sep 2014 14:37:37 +0000 (15:37 +0100)] 
Prepare Module::CoreList for 5.21.5, expected on 2014-10-20

5 years agoModule::CoreList 5.20140920 is now on CPAN
Steve Hay [Sat, 20 Sep 2014 14:32:57 +0000 (15:32 +0100)] 
Module::CoreList 5.20140920 is now on CPAN

5 years agoRegen B::Op_private for 5.21.5
Steve Hay [Sat, 20 Sep 2014 14:31:15 +0000 (15:31 +0100)] 
Regen B::Op_private for 5.21.5

5 years agoBump version to 5.21.5
Steve Hay [Sat, 20 Sep 2014 14:01:41 +0000 (15:01 +0100)] 
Bump version to 5.21.5

5 years agoCreate new perldelta for 5.21.5
Steve Hay [Sat, 20 Sep 2014 13:55:13 +0000 (14:55 +0100)] 
Create new perldelta for 5.21.5

5 years agoAdd epigraph for 5.12.4
Steve Hay [Sat, 20 Sep 2014 13:48:07 +0000 (14:48 +0100)] 
Add epigraph for 5.12.4

5 years agoPerl 5.21.4 today v5.21.4
Steve Hay [Sat, 20 Sep 2014 10:03:38 +0000 (11:03 +0100)] 
Perl 5.21.4 today

5 years agoFinalize perldelta
Steve Hay [Sat, 20 Sep 2014 09:59:59 +0000 (10:59 +0100)] 
Finalize perldelta

5 years agoUpdate Module::CoreList for 5.21.4
Steve Hay [Sat, 20 Sep 2014 09:45:49 +0000 (10:45 +0100)] 
Update Module::CoreList for 5.21.4

5 years agoBlead is in sync with Data::Dumper 2.154
Steve Hay [Sat, 20 Sep 2014 09:28:18 +0000 (10:28 +0100)] 
Blead is in sync with Data::Dumper 2.154

5 years agoDisable libquadmath in configure.com.
Craig A. Berry [Sat, 20 Sep 2014 02:13:54 +0000 (21:13 -0500)] 
Disable libquadmath in configure.com.

It can't reasonably be a configuration option since there is no
special library needed (or available) to do 128-bit doubles.

Also, we can't set the default of a configure variable to "n" unless
it's the default answer to a question we ask; the compiler
understands "#define" and "#undef" but not "#n".

5 years agoRevert "infnan: more tests."
Jarkko Hietaniemi [Sat, 20 Sep 2014 02:01:32 +0000 (22:01 -0400)] 
Revert "infnan: more tests."

This reverts commit 5d288d736c2758c27a5943647f4a524f0e93a642.

So that Steve Hay can enjoy a fail-free VC6 build for 5.21.4.

After the release, let's revert this revert, and return to
punishing ourselves with VC6.

5 years ago$VERSION bump cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
Steve Hay [Sat, 20 Sep 2014 01:37:53 +0000 (02:37 +0100)] 
$VERSION bump cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm

Picked up by .\perl Porting\cmpVERSION.pl -d --tag v5.21.3 but not by
.\perl Porting\cmpVERSION.pl -d -x --tag v5.21.3 or porting/cmp_version.t.

5 years agoperldelta: quadmath
Jarkko Hietaniemi [Sat, 20 Sep 2014 01:00:02 +0000 (21:00 -0400)] 
perldelta: quadmath

5 years agoperldelta - Remove boilerplate, fill in modules changes and other minor edits
Steve Hay [Sat, 20 Sep 2014 00:17:32 +0000 (01:17 +0100)] 
perldelta - Remove boilerplate, fill in modules changes and other minor edits

And a known_pod_issues.dat regen since I'm giving up for now at least on
trying to get the perldiag link to "\N{} in inverted character class or as
a range end-point is restricted to one character in regex; marked by
S<<-- HERE> in m/%s/" working.

5 years agoUpdate release announcement template
Steve Hay [Fri, 19 Sep 2014 23:46:09 +0000 (00:46 +0100)] 
Update release announcement template

5 years agoquadmath: add test actually exercising this fancy precision.
Jarkko Hietaniemi [Fri, 19 Sep 2014 20:26:38 +0000 (16:26 -0400)] 
quadmath: add test actually exercising this fancy precision.

5 years agoEditorializing quadmath entry.
Jarkko Hietaniemi [Fri, 19 Sep 2014 13:43:35 +0000 (09:43 -0400)] 
Editorializing quadmath entry.

5 years agoperllocale: Nit
Karl Williamson [Fri, 19 Sep 2014 18:09:27 +0000 (12:09 -0600)] 
perllocale: Nit

5 years agoperldelta: Grammar nit
Karl Williamson [Fri, 19 Sep 2014 17:49:27 +0000 (11:49 -0600)] 
perldelta: Grammar nit

The noun 'effect' was meant here.

5 years agoperldiag: Reunite ‘perhaps you forgot to load’
Father Chrysostomos [Fri, 19 Sep 2014 15:41:00 +0000 (08:41 -0700)] 
perldiag: Reunite ‘perhaps you forgot to load’

to the other part of the message.  diagnostics.pm won’t find it otherwise:

$ perl -Mdiagnostics -we '"foo"->bar'
Can't locate object method "bar" via package "foo" (perhaps you forgot to load
"foo"?) at -e line 1 (#1)
Uncaught exception from user code:
Can't locate object method "bar" via package "foo" (perhaps you forgot to load "foo"?) at -e line 1.

Now we have this:

Can't locate object method "bar" via package "foo" (perhaps you forgot to load
"foo"?) at -e line 1 (#1)
    (F) You called a method on a class that did not exist, and the method
    could not be found in UNIVERSAL.  This often means that a method
    requires a package that has not been loaded.

Uncaught exception from user code:
Can't locate object method "bar" via package "foo" (perhaps you forgot to load "foo"?) at -e line 1.

5 years agoB.xs: fix syntax err in PERL_VERSION < 17
David Mitchell [Fri, 19 Sep 2014 17:28:09 +0000 (18:28 +0100)] 
B.xs: fix syntax err in PERL_VERSION < 17

The blead version of B.xs obviously hasn't been able to be compiled
on old perls for a while. This fixes one such syntax error, blind.

5 years agoregen/op_private: tidy up rv2cv entry
David Mitchell [Fri, 19 Sep 2014 17:24:11 +0000 (18:24 +0100)] 
regen/op_private: tidy up rv2cv entry

Remove some temporary comments, and merge the two places where rv2cv flags
are defined.

5 years agomove OPpTARGET_MY comments from opcode.pl
David Mitchell [Fri, 19 Sep 2014 17:14:01 +0000 (18:14 +0100)] 
move OPpTARGET_MY comments from opcode.pl

There is a section in regen/opcode.pl explaining when its okay to
use the T flag / OPpTARGET_MY define.

Move that text to regen/op_private, at the spot where it defines
OPpTARGET_MY. It's more likely to be seen there.

5 years agoregen/op_private: update TARGLEX comments.
David Mitchell [Fri, 19 Sep 2014 17:10:27 +0000 (18:10 +0100)] 
regen/op_private: update TARGLEX comments.

Explain a bit more about how OPpTARGET_MY is used, and remove a temporary
comment I make about inconsistencies in which ops can use the flag as
defined by the old Concise.pm and regen/opcodes T flags.

5 years agopp.h: remove spurious comment about OPpTARGET_MY
David Mitchell [Fri, 19 Sep 2014 16:52:59 +0000 (17:52 +0100)] 
pp.h: remove spurious comment about OPpTARGET_MY

OPpTARGET_MY is unrelated to MAXARG as far as I can tell.

5 years agoregen/op_private: fix assorted typos
David Mitchell [Fri, 19 Sep 2014 16:49:05 +0000 (17:49 +0100)] 
regen/op_private: fix assorted typos

5 years agocomment pp_foo aliases in pp*.c
David Mitchell [Fri, 19 Sep 2014 16:40:25 +0000 (17:40 +0100)] 
comment pp_foo aliases in pp*.c

Where pp_foo() also handles OP_BAR, add a comment above the function
mentioning that it also does pp_bar.

This means that "grep pp_bar pp*.c" quickly locates the file/function that
handles OP_BAR.

5 years agoremove vestigal threadsv/threadsv_named
David Mitchell [Fri, 19 Sep 2014 16:12:02 +0000 (17:12 +0100)] 
remove vestigal threadsv/threadsv_named

the threadsv op and the PL_threadsv_names var were part of the 5.005
threads model, long since removed. Remove some remaining references to
them.

5 years agoB.xs: add class names to method branch comments
David Mitchell [Fri, 19 Sep 2014 15:44:34 +0000 (16:44 +0100)] 
B.xs: add class names to method branch comments

A single function in B.xs handles the method calls for a whole bunch of
methods from a whole bunch of subclasses (e.g. B::OP, B::COP etc).

Extend the comment next to each switch case to include the full method
name: e.g. "B::COP::stash" rather than just "stash".

This makes things slightly less confusing.

5 years agofix B::PADOP->sv and ->gv
David Mitchell [Fri, 19 Sep 2014 15:07:08 +0000 (16:07 +0100)] 
fix B::PADOP->sv and ->gv

PADOP structs, which are only used on threaded builds, have an op_padix
field rather than an op_sv or op_gv.

The B::PADOP sv and gv methods would do PL_curpad[o->op_padix] to
look up the value, That is completely wrong. PL_curpad is the pad of the
caller of B::PADOP::sv/gv, not the pad of the sub containing the PADOP op.

This fault appears to to go back to 1999, when PADOP was first added.
It's probably never been spotted because:

a) PADOP only ever used for creating GV ops on threaded builds (so
->sv is probably never called),

b) it has a check where if the thing it retrieved from the pad isn't a GV,
it returns NULL instead.

Fix this by always returning NULL. This is comparable with B::SVOP_>sv,
which always returns op_sv, which on threaded builds always happens to be
NULL. Note that B::SVOP->sv expects the caller to retrieve op_targ and do
the pad lookup.

NB just to avoid confusion (I was certainly confused), these ops are
implemented with the types shown:

    unthreaded:

        const: B::SVOP
        gvsv:  B::SVOP

    threaded:

        const: B::SVOP
        gvsv:  B::PADOP

5 years agoDocument customisation introduced by 991b13da7
Chris 'BinGOs' Williams [Fri, 19 Sep 2014 14:52:00 +0000 (15:52 +0100)] 
Document customisation introduced by 991b13da7

5 years agodarwin can have libfoo.0.dylib, as opposed to libfoo.dylib.0
Jarkko Hietaniemi [Wed, 10 Sep 2014 21:42:04 +0000 (17:42 -0400)] 
darwin can have libfoo.0.dylib, as opposed to libfoo.dylib.0

Configure was changed similarly in d98292cc

cpan module; patch submitted upstream:
https://rt.cpan.org/Ticket/Display.html?id=98766
and has been applied.

5 years agoquadmath NVs cannot be cast to double etc.
Jarkko Hietaniemi [Thu, 11 Sep 2014 02:21:39 +0000 (22:21 -0400)] 
quadmath NVs cannot be cast to double etc.

5 years agoquadmath strtoflt128 accepts false infinities.
Jarkko Hietaniemi [Sun, 14 Sep 2014 01:16:55 +0000 (21:16 -0400)] 
quadmath strtoflt128 accepts false infinities.

5 years agoquadmath doesn't do locale radixes.
Jarkko Hietaniemi [Wed, 10 Sep 2014 22:40:11 +0000 (18:40 -0400)] 
quadmath doesn't do locale radixes.

5 years agoquadmath and gconvert do not mix.
Jarkko Hietaniemi [Wed, 10 Sep 2014 18:30:44 +0000 (14:30 -0400)] 
quadmath and gconvert do not mix.

5 years agoquadmath has expq instead of expl.
Jarkko Hietaniemi [Wed, 10 Sep 2014 18:03:37 +0000 (14:03 -0400)] 
quadmath has expq instead of expl.

5 years agoquadmath helpers export list.
Jarkko Hietaniemi [Sun, 14 Sep 2014 22:44:27 +0000 (18:44 -0400)] 
quadmath helpers export list.

5 years agoquadmath Q format specifier and gcc -Wformat do not mix.
Jarkko Hietaniemi [Sun, 14 Sep 2014 21:39:15 +0000 (17:39 -0400)] 
quadmath Q format specifier and gcc -Wformat do not mix.

5 years agoquadmath NV formatted I/O.
Jarkko Hietaniemi [Sun, 14 Sep 2014 19:43:55 +0000 (15:43 -0400)] 
quadmath NV formatted I/O.

5 years agoquadmath INSTALL.
Jarkko Hietaniemi [Wed, 27 Aug 2014 00:49:09 +0000 (20:49 -0400)] 
quadmath INSTALL.

5 years agoquadmath_snprintf formats.
Jarkko Hietaniemi [Tue, 2 Sep 2014 10:50:38 +0000 (06:50 -0400)] 
quadmath_snprintf formats.

5 years agoquadmath interfaces and constants
Jarkko Hietaniemi [Sun, 14 Sep 2014 19:41:45 +0000 (15:41 -0400)] 
quadmath interfaces and constants

5 years agoquadmath needs gcc, at least 4.6.
Jarkko Hietaniemi [Sat, 23 Aug 2014 01:02:23 +0000 (21:02 -0400)] 
quadmath needs gcc, at least 4.6.

5 years agoquadmath __float128 as NVTYPE.
Jarkko Hietaniemi [Fri, 22 Aug 2014 15:55:33 +0000 (11:55 -0400)] 
quadmath __float128 as NVTYPE.

5 years agoquadmath __float128 for longdblkind.
Jarkko Hietaniemi [Fri, 22 Aug 2014 15:35:34 +0000 (11:35 -0400)] 
quadmath __float128 for longdblkind.

5 years agoConfigure -Dusequadmath.
Jarkko Hietaniemi [Fri, 22 Aug 2014 15:05:52 +0000 (11:05 -0400)] 
Configure -Dusequadmath.

5 years agoConfigure for <quadmath.h>
Jarkko Hietaniemi [Fri, 22 Aug 2014 14:51:18 +0000 (10:51 -0400)] 
Configure for <quadmath.h>

5 years agoMention more C99 math interfaces.
Jarkko Hietaniemi [Fri, 19 Sep 2014 12:37:11 +0000 (08:37 -0400)] 
Mention more C99 math interfaces.

5 years agoperldelta: mention the op_private work
David Mitchell [Fri, 19 Sep 2014 12:12:23 +0000 (13:12 +0100)] 
perldelta: mention the op_private work

5 years agoadd $VERSION to B::Op_private
David Mitchell [Fri, 19 Sep 2014 09:51:15 +0000 (10:51 +0100)] 
add $VERSION to B::Op_private

Since this is an auto-generated .pm file, set $VERSION to the perl
version (i.e. 5.mmmnnn), the same trick that Config.pm does.

Since regen scripts are usually executed by a different perl, and the
current perl may not be built yet, don't rely on $]; instead get the
info from patchlevel.h. Add a new sub for this purpose, perl_version(),
to regen/regen_lib.pl. (I feel that such a routine should already exist
somewhere, but I couldn't find such a beastie.)

5 years agoperldelta for 1645b83c5c
Steve Hay [Fri, 19 Sep 2014 08:24:13 +0000 (09:24 +0100)] 
perldelta for 1645b83c5c

5 years agoperldelta - Add links for rt.perl.org bugs
Steve Hay [Fri, 19 Sep 2014 08:11:12 +0000 (09:11 +0100)] 
perldelta - Add links for rt.perl.org bugs

5 years agoperldelta - Data::Dumper has been upgraded
Steve Hay [Fri, 19 Sep 2014 08:08:37 +0000 (09:08 +0100)] 
perldelta - Data::Dumper has been upgraded

5 years agoBump all Math::BigInt $VERSIONs as per 945313f0ae following a0732aaa4b
Steve Hay [Fri, 19 Sep 2014 08:08:11 +0000 (09:08 +0100)] 
Bump all Math::BigInt $VERSIONs as per 945313f0ae following a0732aaa4b

And add a perldelta note.

5 years agoTeach diag.t about Perl_mess
Father Chrysostomos [Fri, 19 Sep 2014 06:14:04 +0000 (23:14 -0700)] 
Teach diag.t about Perl_mess

Every instance of Perl_mess(aTHX_ "..." ...) is used for an error
message.

5 years agogv.c: For ‘Global symbol’ msg, don’t check utf8ness twice
Father Chrysostomos [Fri, 19 Sep 2014 06:02:52 +0000 (23:02 -0700)] 
gv.c: For ‘Global symbol’ msg, don’t check utf8ness twice

We already take care of possible utf8ness in the format string.  There
is no need to turn on the flag afterwards.  This double utf8 check has
been present since ecad31f018.

5 years agoperldelta for d8c6310a4f0/#121638
Father Chrysostomos [Fri, 19 Sep 2014 05:12:39 +0000 (22:12 -0700)] 
perldelta for d8c6310a4f0/#121638

5 years agoperldelta for 343573e55 (the 25-year-old bug)
Father Chrysostomos [Fri, 19 Sep 2014 05:04:04 +0000 (22:04 -0700)] 
perldelta for 343573e55 (the 25-year-old bug)

5 years agoperldelta for ff2a62e0/#15667
Father Chrysostomos [Fri, 19 Sep 2014 05:00:43 +0000 (22:00 -0700)] 
perldelta for ff2a62e0/#15667

5 years agoUpdate perldiag to reflect ‘Global symbol’ change
Father Chrysostomos [Fri, 19 Sep 2014 05:10:14 +0000 (22:10 -0700)] 
Update perldiag to reflect ‘Global symbol’ change

Why didn’t t/porting/diag.t catch this?

5 years agoremove duplicate SvNV calls in pp_enteriter
Daniel Dragan [Fri, 19 Sep 2014 03:24:18 +0000 (23:24 -0400)] 
remove duplicate SvNV calls in pp_enteriter

commit a2309040b8 added duplicate SvNV calls, remove them. Reorder the
"SvUV_nomg(sv) > (UV)IV_MAX || SvNV_nomg(sv) > (NV)UV_MAX" so the var
will be stored in a FP CPU reg for all comparisons, and not saved/fetched
to/from mem across the SvUV func call. Due to complexity, I am not
unrolling and fusing SvNV_nomg and SvOK.

VC 2003 32b size of func in machine code bytes before 0x4d3 after 0x4a2

5 years ago[perl #121638] Make ‘Global symbol’ message more newbie-friendly
Father Chrysostomos [Fri, 19 Sep 2014 03:34:43 +0000 (20:34 -0700)] 
[perl #121638] Make ‘Global symbol’ message more newbie-friendly

by suggesting the declaration of a lexical variable, but without
removing the ‘Global symbol’ part, since much code no doubt depends
on its presence.

5 years agoConsistent indentation in AUTHORS
Father Chrysostomos [Fri, 19 Sep 2014 03:15:29 +0000 (20:15 -0700)] 
Consistent indentation in AUTHORS

5 years agoRename S_adjust_stack_on_leave
Father Chrysostomos [Fri, 19 Sep 2014 01:08:06 +0000 (18:08 -0700)] 
Rename S_adjust_stack_on_leave

It now does more than that, so use a name that describes when it is
called, rather than what it does.

5 years agofactor out TAINT_NOT into S_adjust_stack_on_leave
Daniel Dragan [Mon, 16 Jun 2014 09:53:08 +0000 (05:53 -0400)] 
factor out TAINT_NOT into S_adjust_stack_on_leave

All callers of S_adjust_stack_on_leave had TAINT_NOT before the call to
S_adjust_stack_on_leave. Factor it into the func to make the callers
smallers machine code wise. More things can be factored out into
adjust_stack_on_leave from its callers, but this particular change is very
easy.

5 years agoParenthesize & and | a bit.
Jarkko Hietaniemi [Fri, 19 Sep 2014 01:25:42 +0000 (21:25 -0400)] 
Parenthesize & and | a bit.

5 years agoinfnan: more tests.
Jarkko Hietaniemi [Fri, 19 Sep 2014 01:10:41 +0000 (21:10 -0400)] 
infnan: more tests.

++, math, compare.

5 years agoDo not fall into Gconvert or F0convert on inf/nan.
Jarkko Hietaniemi [Fri, 19 Sep 2014 01:45:06 +0000 (21:45 -0400)] 
Do not fall into Gconvert or F0convert on inf/nan.

Though make F0convert to do the right thing, S_infnan_2pv, on infnan.

(found by bulk88)

5 years agoinfnan: ++ or -- on infnan doesn't lose precision.
Jarkko Hietaniemi [Fri, 19 Sep 2014 01:15:03 +0000 (21:15 -0400)] 
infnan: ++ or -- on infnan doesn't lose precision.

(found by bulk88)

5 years agoIncrement $VERSION in Math::BigInt.
James E Keenan [Fri, 19 Sep 2014 01:56:01 +0000 (21:56 -0400)] 
Increment $VERSION in Math::BigInt.

5 years agoreplace uses of Test.pm in dist/ distributions (IO, Math-BigInt)
Karen Etheridge [Wed, 17 Sep 2014 19:44:52 +0000 (12:44 -0700)] 
replace uses of Test.pm in dist/ distributions (IO, Math-BigInt)

5 years agotoke.c: Fix bad read in S_scan_heredoc
Father Chrysostomos [Thu, 18 Sep 2014 08:16:36 +0000 (01:16 -0700)] 
toke.c: Fix bad read in S_scan_heredoc

If the first character of a source line matched the first character
of the here-doc terminator, then we did a memEQ with the length of
the terminator, without regard to the length of the line, which
could be shorter.

This bug goes all the way back to perl 3.000, which introduced here-
docs.  Line 1802 of toke.c in perl 3.000 is:

    if (*s == term && bcmp(s,tokenbuf,len) == 0) {

and contains the same bug.

So this bug is twenty-five years old.

5 years agoDump GPFLAGS
Father Chrysostomos [Thu, 18 Sep 2014 23:12:24 +0000 (16:12 -0700)] 
Dump GPFLAGS

5 years agoSkip no-common-vars optimisation for aliases
Father Chrysostomos [Thu, 18 Sep 2014 23:10:01 +0000 (16:10 -0700)] 
Skip no-common-vars optimisation for aliases

The ‘no common vars’ optimisation allows perl to copy the values
straight from the rhs to the lhs in a list assignment.

In ($a,$b) = ($c,$d), that means $c gets assigned to $a,
then $d to $b.

If the same variable occurs on both sides of the expression
(($a,$b)=($b,$a)), then it is necessary to make temporary copies of
the variables on the rhs, before assigning them to the left.

If some variables have been aliased to others, then the common vars
detection can be fooled:

    *x = *y;
    $x = 3;
    ($x, $z) = (1, $y);

That assigns 1 to $x, and then goes to assign $y to $z, but $y is
the same as $x, which has just been clobbered.  So 1 gets assigned
instead of 3.

This commit solves this by recording in each typeglob whether the sca-
lar is an alias of a scalar from elsewhere.

If such a glob is encountered, then the entire expression is ‘tainted’
such that list assignments will assume there might be common vars.

5 years agogv.h: Add a gp_flags field
Father Chrysostomos [Thu, 18 Sep 2014 07:24:25 +0000 (00:24 -0700)] 
gv.h: Add a gp_flags field

This is for flags that have to be shared with all GVs that have the
same GP pointer.

5 years agoperlsyn: Remove reference to potential Unicode op
Karl Williamson [Fri, 19 Sep 2014 00:20:57 +0000 (18:20 -0600)] 
perlsyn: Remove reference to potential Unicode op

See thread beginning at
http://nntp.perl.org/group/perl.perl5.porters/219796

5 years agoPOSIX math: AIX 7 has nexttoward
Jarkko Hietaniemi [Thu, 18 Sep 2014 21:33:36 +0000 (17:33 -0400)] 
POSIX math: AIX 7 has nexttoward

5 years agoPOSIX math: the pa-risc gcc missing tgamma and nexttoward
Jarkko Hietaniemi [Thu, 18 Sep 2014 21:30:01 +0000 (17:30 -0400)] 
POSIX math: the pa-risc gcc missing tgamma and nexttoward

5 years agoPOSIX math: Tru64 has rint()
Jarkko Hietaniemi [Thu, 18 Sep 2014 21:26:02 +0000 (17:26 -0400)] 
POSIX math: Tru64 has rint()

5 years agoin Perl_sv_copypv_flags move mg_get call to callee
Daniel Dragan [Thu, 18 Sep 2014 16:44:15 +0000 (12:44 -0400)] 
in Perl_sv_copypv_flags move mg_get call to callee

Perl_sv_2pv_flags already has logic to check for and call mg_get, which
can't be removed due to API, so dont do it in the caller. This makes
Perl_sv_copypv_flags smaller/faster by removing the branch.

5 years agoUnused return value.
Jarkko Hietaniemi [Thu, 18 Sep 2014 18:46:24 +0000 (14:46 -0400)] 
Unused return value.

5 years agoConditionally unused variable.
Jarkko Hietaniemi [Thu, 18 Sep 2014 18:45:38 +0000 (14:45 -0400)] 
Conditionally unused variable.

5 years agoComment detypo.
Jarkko Hietaniemi [Thu, 18 Sep 2014 18:38:59 +0000 (14:38 -0400)] 
Comment detypo.

5 years agoAdd dVAR:s for -DPERL_GLOBAL_STRUCT.
Jarkko Hietaniemi [Thu, 18 Sep 2014 18:38:07 +0000 (14:38 -0400)] 
Add dVAR:s for -DPERL_GLOBAL_STRUCT.

5 years agoMake certain we have the top-level "lib" in @INC.
Jarkko Hietaniemi [Thu, 18 Sep 2014 17:51:34 +0000 (13:51 -0400)] 
Make certain we have the top-level "lib" in @INC.

5 years agohexfp: use the bytewise extraction also for plain doubles.
Jarkko Hietaniemi [Thu, 18 Sep 2014 14:53:35 +0000 (10:53 -0400)] 
hexfp: use the bytewise extraction also for plain doubles.

Instead of the frexp+ldexp way which doesn't work when NVSIZE > UVSIZE.

5 years agoAdd comment about the double-double extraction.
Jarkko Hietaniemi [Thu, 18 Sep 2014 11:31:59 +0000 (07:31 -0400)] 
Add comment about the double-double extraction.

5 years agoDocument the double-double format a little.
Jarkko Hietaniemi [Thu, 18 Sep 2014 11:26:20 +0000 (07:26 -0400)] 
Document the double-double format a little.

5 years agomore NAN FP fixs for VC6/NAN_COMPARE_BROKEN compilers
Daniel Dragan [Thu, 18 Sep 2014 17:16:17 +0000 (13:16 -0400)] 
more NAN FP fixs for VC6/NAN_COMPARE_BROKEN compilers

op/infnan.t now passes all tests on VC6

5 years agoData::Dumper version bump for CPAN release
Steffen Mueller [Thu, 18 Sep 2014 15:45:39 +0000 (17:45 +0200)] 
Data::Dumper version bump for CPAN release

5 years agodon't recurse infinitely in Data::Dumper
Tony Cook [Mon, 30 Jun 2014 02:16:03 +0000 (12:16 +1000)] 
don't recurse infinitely in Data::Dumper

Add a configuration variable/option to limit recursion when dumping
deep data structures.

Defaults the limit to 1000, which can be reduced or increase, or
eliminated by setting it to 0.

This patch addresses CVE-2014-4330.  This bug was found and
reported by: LSE Leading Security Experts GmbH employee Markus
Vervier.

5 years agoRevert a231c375cc and fix 61cd60c6c5 differently instead
Steve Hay [Thu, 18 Sep 2014 12:25:36 +0000 (13:25 +0100)] 
Revert a231c375cc and fix 61cd60c6c5 differently instead

Change a231c375cc fixed the GCC build, broken by 61cd60c6c5, but
unfortunately also caused a test failure in the very same GCC build:
ext/XS-APItest/t/print.t test 11. There is no way to print long doubles
with formatting functions in msvcrt.dll (which is what MinGW/MinGW-w64
use by default) because that doesn't support long doubles at all, other
than as a synonym for doubles. Defining PERL_PRIfldbl gave APItest.xs the
false expectation that printing a long double with it would work, but it
does not. Hence, revert a231c375cc for now. (Future commits will add
optional GCC-only support for using long doubles by using some MinGW-
specific formatting functions instead.)

We now fix the GCC build breakage in sv.c by simply testing for whether
PERL_PRIgldbl is defined (just like APItest.xs already tests for whether
PERL_PRIfldbl is defined). Now that it once again isn't defined, we fall
through to the #else case, which is what VC uses anyway since its
LONG_DOUBLESIZE is equal to its DOUBLESIZE.

5 years agogv.h: Comment typo
Father Chrysostomos [Thu, 18 Sep 2014 07:15:21 +0000 (00:15 -0700)] 
gv.h: Comment typo

5 years agoTeach dump.c:debop about CV refs in stashes
Father Chrysostomos [Thu, 18 Sep 2014 06:50:58 +0000 (23:50 -0700)] 
Teach dump.c:debop about CV refs in stashes

This is what -Dt was giving:

$ ./miniperl -Dt -e 'sub foo{} &foo'

EXECUTING...

(-e:0)enter
(-e:0)nextstate
(-e:1)pushmark
(-e:1)gvAssertion failed: (isGV_with_GP(_gvstash)), function Perl_gv_fullname4, file gv.c, line 2341.
Abort trap: 6

5 years agoperlop tweak
Father Chrysostomos [Thu, 18 Sep 2014 06:41:00 +0000 (23:41 -0700)] 
perlop tweak

Consider this a follow-up to fc6933476.

5 years ago[Merge] Eliminate IS_PADGV etc.
Father Chrysostomos [Thu, 18 Sep 2014 06:40:03 +0000 (23:40 -0700)] 
[Merge] Eliminate IS_PADGV etc.

The core no longer uses IS_PADGV, IS_PADCONST, or GvIN_PAD.  They were
no longer needed and never really worked properly.

5 years agoRemove GVf_IN_PAD
Father Chrysostomos [Thu, 18 Sep 2014 06:21:11 +0000 (23:21 -0700)] 
Remove GVf_IN_PAD

Nothing on CPAN uses it, but some CPAN modules use the associ-
ated macros.

5 years agoOnly #define IS_(PADGV|CONST) if !PERL_CORE
Father Chrysostomos [Thu, 18 Sep 2014 06:18:54 +0000 (23:18 -0700)] 
Only #define IS_(PADGV|CONST) if !PERL_CORE

and give IS_PADGV a simpler definition.

These are not used in the perl core any more and shouldn’t be.

The IS_PADGV definition checked for the IN_PAD flag, which flag never
made much sense (see the prev. commit’s message).  Since any GV could
end up with that flag, and since any GV coming near a pad would get
it, it might as well have been turned on for all GVs (except copies).
So just check whether the thingy is a GV.