95 min agoUpdate ExtUtils-Manifest to CPAN version 1.68 blead
Chris 'BinGOs' Williams [Tue, 16 Sep 2014 17:31:23 +0000]
Update ExtUtils-Manifest to CPAN version 1.68

  [DELTA]

1.68  Tue, Sep 16, 2014
  - Fix regression with manifind() and following symlinks

2 hours agoMake ‘No comma allowed’ respect lex subs
Father Chrysostomos [Tue, 16 Sep 2014 16:43:31 +0000]
Make ‘No comma allowed’ respect lex subs

$ ./perl -lIlib -XMfeature=:all -e 'sub foo {} print foo,bar'
bar
$ ./perl -lIlib -XMfeature=:all -e 'state sub foo {} print foo,bar'
No comma allowed after filehandle at -e line 1.

This commit makes the latter behave like the former.

2 hours agolexsub.t: To-do tests for sort lex_sub
Father Chrysostomos [Tue, 16 Sep 2014 12:47:17 +0000]
lexsub.t: To-do tests for sort lex_sub

2 hours agotoke.c: Remove obsolete comment
Father Chrysostomos [Tue, 16 Sep 2014 12:32:35 +0000]
toke.c: Remove obsolete comment

345b37853 removed the associated parameter.

7 hours agoUpdate ExtUtils-Install to CPAN version 2.04
Chris 'BinGOs' Williams [Tue, 16 Sep 2014 12:12:40 +0000]
Update ExtUtils-Install to CPAN version 2.04

  [DELTA]

2.04

- Cosmetic change as forgot to update version information in POD on last two
  releases

2.02

- Reverted change to pm_to_blib that causes write-only directory paths to
  be created

2.00

- Formal release to change META information and synchronise versioning

10 hours agoSynchronise Maintainers.pl for Module-CoreList
Chris 'BinGOs' Williams [Tue, 16 Sep 2014 09:01:26 +0000]
Synchronise Maintainers.pl for Module-CoreList

11 hours agoNote that one MakeMaker test is currently CUSTOMIZED
Steve Hay [Tue, 16 Sep 2014 08:24:11 +0000]
Note that one MakeMaker test is currently CUSTOMIZED

11 hours agoRemove IGNORABLE files from ExtUtils-Install as per 8db6555210
Steve Hay [Tue, 16 Sep 2014 08:11:18 +0000]
Remove IGNORABLE files from ExtUtils-Install as per 8db6555210

(now that it's under cpan/, rather than dist/, since d393d7e5ec)

11 hours agoUpgrade Archive-Tar from version 2.00 to 2.02
Steve Hay [Tue, 16 Sep 2014 08:00:39 +0000]
Upgrade Archive-Tar from version 2.00 to 2.02

11 hours agoUpdate 5.20 release schedule: Plan for 5.20.2 in January
Steve Hay [Tue, 16 Sep 2014 07:53:07 +0000]
Update 5.20 release schedule: Plan for 5.20.2 in January

And add a missing development release engineer to the list.

13 hours agoExclude lex sub package name from (caller $n)[3]
Father Chrysostomos [Tue, 16 Sep 2014 05:27:05 +0000]
Exclude lex sub package name from (caller $n)[3]

Commit ae77754ae caused it to start including the package name.  Pre-
viously, lexical subs were reported as ‘(unknown)’.

Now we have more expected output:

$ ./perl -Ilib -XMfeature=:all -e 'my sub x{warn +(caller 0)[3]} x'
x at -e line 1.

14 hours agomg.c: Avoid reifying GV for undefined sig handler
Father Chrysostomos [Tue, 16 Sep 2014 03:39:22 +0000]
mg.c: Avoid reifying GV for undefined sig handler

14 hours agoMake ‘SIG handler not defined’ UTF8- and null-safe
Father Chrysostomos [Tue, 16 Sep 2014 03:34:32 +0000]
Make ‘SIG handler not defined’ UTF8- and null-safe

18 hours agoAvoid reifing GVs in gv.c:gv_try_downgrade
Father Chrysostomos [Tue, 16 Sep 2014 01:03:41 +0000]
Avoid reifing GVs in gv.c:gv_try_downgrade

I’m not sure that it’s even possible for a CV with a name hek to reach
this code path, but if that happens this avoids reifying the GV.

18 hours agoFix compiler warnings
Father Chrysostomos [Tue, 16 Sep 2014 00:54:51 +0000]
Fix compiler warnings

See ticket #116735.

19 hours agoperldelta for 7fcb4126
Father Chrysostomos [Mon, 15 Sep 2014 23:56:46 +0000]
perldelta for 7fcb4126

19 hours agoAvoid reifying GVs when lex subs are used for overload
Father Chrysostomos [Mon, 15 Sep 2014 23:11:03 +0000]
Avoid reifying GVs when lex subs are used for overload

Takes more code, but I think the new code is clearer....

19 hours agoStop undef &foo from temporarily anonymising
Father Chrysostomos [Mon, 15 Sep 2014 22:53:31 +0000]
Stop undef &foo from temporarily anonymising

Instead of setting aside the name, calling cv_undef, and then naming
the sub anew, just pass a flag to tell cv_undef not to unname it.

19 hours agoAvoid reifying GV when lex stub is used as method
Father Chrysostomos [Mon, 15 Sep 2014 21:50:00 +0000]
Avoid reifying GV when lex stub is used as method

20 hours agodelete/exists on array elements is discouraged, not deprecated
Ricardo Signes [Mon, 15 Sep 2014 23:03:36 +0000]
delete/exists on array elements is discouraged, not deprecated

For further discussion, see (among other things)
http://nntp.perl.org/group/perl.perl5.porters/218752

21 hours agodocument how to graduate from experimental status
Ricardo Signes [Mon, 15 Sep 2014 22:19:41 +0000]
document how to graduate from experimental status

21 hours agorelease schedule: Max M. will do December 2014
Ricardo Signes [Mon, 15 Sep 2014 22:19:28 +0000]
release schedule: Max M. will do December 2014

21 hours agoFix assertion failure with undef &my_sub/&anon
Father Chrysostomos [Mon, 15 Sep 2014 21:28:22 +0000]
Fix assertion failure with undef &my_sub/&anon

$ ./perl -Ilib -le 'use experimental lexical_subs; my sub x; undef &x;'
Assertion failed: (isGV_with_GP(_gvname_hek)), function Perl_leave_scope, file scope.c, line 1035.
Abort trap: 6

pp_undef undefines a subroutine via cv_undef, which wipes out the
name, and then restores the name again afterwards.

For subs with GVs, it would call CvGV_set afterwards with the same gv.
But cv_undef could have freed the GV, if the CV held the only refer-
ence count.

I caused this for lexical subs a few commits ago in ae77754ae (because
CvGV will always return non-null; in fact the CvNAME_HEK code in
pp_undef is no longer exercised, but I will address that soon).

For anonymous subs it is older:

$ perl5.14.4 -e '$_ = sub{}; delete $::{__ANON__}; undef &$_; use Devel::Peek; Dump $_'
SV = IV(0x7fed9982f9c0) at 0x7fed9982f9d0
  REFCNT = 1
  FLAGS = (ROK)
  RV = 0x7fed9982f9e8
  SV = PVCV(0x7fed9982e290) at 0x7fed9982f9e8
    REFCNT = 2
    FLAGS = (PADMY,WEAKOUTSIDE,CVGV_RC)
    COMP_STASH = 0x7fed99806b68 "main"
    ROOT = 0x0
    GVGV::GV = 0x7fed9982fa48Assertion failed: (isGV_with_GP(_gvname_hek)), function Perl_do_gvgv_dump, file dump.c, line 1477.
Abort trap: 6

(Probably commit 803f2748.)

Presumably that could be made to crash in other ways than introspec-
tion, but it is much harder.

This commit fixes the problem by fiddling with reference counts.  But
this is only a temporary fix.  I think I plan to stop cv_undef from
removing the name (gv/hek) when called from pp_undef.

21 hours agoPeek.t needs to know about the prev. change
Father Chrysostomos [Mon, 15 Sep 2014 16:35:50 +0000]
Peek.t needs to know about the prev. change

21 hours agodump.c: Don’t dump GvFLAGS as part of GP
Father Chrysostomos [Mon, 15 Sep 2014 16:34:41 +0000]
dump.c: Don’t dump GvFLAGS as part of GP

The flags are not actually stored in the GP.  Dumping them as part of
it implies that they are shared between globs that share the same GP,
which is not the case.

24 hours agoperldelta for f9d9e965
Father Chrysostomos [Mon, 15 Sep 2014 16:41:57 +0000]
perldelta for f9d9e965

24 hours agoperldelta: Insert missing =item
Father Chrysostomos [Mon, 15 Sep 2014 16:42:13 +0000]
perldelta: Insert missing =item

28 hours agoIncrease $Term::ReadLine::VERSION to 1.15
Father Chrysostomos [Mon, 15 Sep 2014 06:03:08 +0000]
Increase $Term::ReadLine::VERSION to 1.15

28 hours agoTerm::ReadLine: Check $^O before -e
Father Chrysostomos [Mon, 15 Sep 2014 06:02:01 +0000]
Term::ReadLine: Check $^O before -e

Put faster checks first.  $^O is internal to perl, but -e has to go
out to the file system.

30 hours agouniversal.c:croak_xs_usage: Don’t fetch context twice
Father Chrysostomos [Mon, 15 Sep 2014 13:22:30 +0000]
universal.c:croak_xs_usage: Don’t fetch context twice

30 hours ago[Merge] CVs without GVs
Father Chrysostomos [Mon, 15 Sep 2014 13:20:16 +0000]
[Merge] CVs without GVs

Subroutines in packages no longer need typeglobs to live in.  Concep-
tually the typeglobs still exist, and will be reified as necessary.

(This was already the case with constant subs, which could be stored
in the stash as refs to constants, but now the stash can have sub
refs, too.)

Currently this optimisation is undone if a sub is exported or used as
a method.  Also, it does not apply to XSUBs.

Here is the full list of notable changes:

Internal:

• CvGV now reifies the GV if necessary.
• Lexical subs now have notional GVs, which are likewise rei-
  fied by CvGV.
• The new CVf_LEXICAL flag indicates that the package name should be
  dropped in error messages.

XS API:

• New cv_name function
• New cv_set_call_checker_flags function

Perl-visible changes:

• New B::safename function

30 hours agoconcise-xs.t needs to know about B::safename
Father Chrysostomos [Sat, 13 Sep 2014 03:26:04 +0000]
concise-xs.t needs to know about B::safename

30 hours agoTweak Peek.t again
Father Chrysostomos [Fri, 12 Sep 2014 21:14:07 +0000]
Tweak Peek.t again

30 hours agodump.c: Missing comma from CVf_HASEVAL output
Father Chrysostomos [Fri, 12 Sep 2014 20:40:41 +0000]
dump.c: Missing comma from CVf_HASEVAL output

30 hours agoTeach Deparse about coderefs in stashes
Father Chrysostomos [Fri, 12 Sep 2014 20:38:23 +0000]
Teach Deparse about coderefs in stashes

30 hours agoIncrease $B::VERSION to 1.51
Father Chrysostomos [Fri, 12 Sep 2014 20:33:55 +0000]
Increase $B::VERSION to 1.51

30 hours agoAdd safename() func to B
Father Chrysostomos [Fri, 12 Sep 2014 20:33:29 +0000]
Add safename() func to B

30 hours agoRemove no-longer-used op.c:S_gv_ename
Father Chrysostomos [Fri, 12 Sep 2014 06:53:36 +0000]
Remove no-longer-used op.c:S_gv_ename

30 hours agoTeach ck_entersub_args_proto about non-GV names
Father Chrysostomos [Fri, 12 Sep 2014 06:52:41 +0000]
Teach ck_entersub_args_proto about non-GV names

Now ck_subr no longer needs to vivify GVs:

$ ./miniperl -e 'sub foo{} BEGIN { warn $::{foo} } foo(); BEGIN { warn $::{foo} }'
CODE(0x7fc98282ad98) at -e line 1.
CODE(0x7fc98282ad98) at -e line 1.

Previously it was like this:

$ ./miniperl -e 'sub foo{} BEGIN { warn $::{foo} } foo(); BEGIN { warn $::{foo} }'
CODE(0x7f8ef082ad98) at -e line 1.
*main::foo at -e line 1.

30 hours agoInline op.c:too_many_arguments_sv into its only caller
Father Chrysostomos [Fri, 12 Sep 2014 06:44:45 +0000]
Inline op.c:too_many_arguments_sv into its only caller

I’m about to change this code anyway, and it’s easier in one spot.

30 hours agoInline op.c:too_few_arguments_sv into its only caller
Father Chrysostomos [Fri, 12 Sep 2014 06:42:45 +0000]
Inline op.c:too_few_arguments_sv into its only caller

I’m about to change this code anyway, and it’s easier in one spot.

30 hours agoTeach dump.c about CVf_LEXICAL
Father Chrysostomos [Fri, 12 Sep 2014 05:49:44 +0000]
Teach dump.c about CVf_LEXICAL

30 hours agoTeach dump.c about CVf_NAMED
Father Chrysostomos [Fri, 12 Sep 2014 05:49:18 +0000]
Teach dump.c about CVf_NAMED

I should have added this in perl 5.18.

30 hours agoop.c:ck_subr: reify GVs based on call checker
Father Chrysostomos [Fri, 12 Sep 2014 00:59:11 +0000]
op.c:ck_subr: reify GVs based on call checker

Instead of faking up a GV to pass to the call checker if we have a
lexical sub, just get the GV from CvGV (since that will reify the GV,
even for lexical subs), unless the call checker has not specifically
requested GVs.

For now, we assume the default call checker cannot handle non-GV sub
names, as indeed it cannot.  An imminent commit will rectify that.

The code in scope.c was getting the name hek from the proto CV (stowed
in magic on the pad name) if the CV in the pad had lost it.  Now, the
proto CV can lose it at compile time via CvGV, so that does not work
anymore.  Instead, just get it from the GV.

30 hours agoUse cv_name in pp_hot.c:sub_crush_depth
Father Chrysostomos [Fri, 12 Sep 2014 05:53:42 +0000]
Use cv_name in pp_hot.c:sub_crush_depth

The next commit will allow lexical subs with GVs to reach this code
path, so use cv_name, since it knows how to handle those.

30 hours agoAdd cv_set_call_checker_flags
Father Chrysostomos [Thu, 11 Sep 2014 20:37:15 +0000]
Add cv_set_call_checker_flags

This is like cv_set_call_checker, except that it allows the caller to
decide whether the call checker needs a GV.

Currently the GV flag is recorded, but ck_subr does not do anything
with it yet.

30 hours agopad.c: Avoid struct name followed by colon
Father Chrysostomos [Thu, 11 Sep 2014 05:06:10 +0000]
pad.c: Avoid struct name followed by colon

Some old clang++ versions have trouble with this.  See ticket #112786.

30 hours agopad.c:cv_name: Reword docs for future extensibility
Father Chrysostomos [Thu, 11 Sep 2014 05:01:15 +0000]
pad.c:cv_name: Reword docs for future extensibility

30 hours agoAvoid reifying GVs in rv2cv
Father Chrysostomos [Thu, 11 Sep 2014 03:29:19 +0000]
Avoid reifying GVs in rv2cv

\&foo no longer reifies GVs in the stash:

$ ./miniperl -e 'sub foo{} warn $::{foo}; \&foo; warn $::{foo}'
CODE(0x7fab6282ad98) at -e line 1.
CODE(0x7fab6282ad98) at -e line 1.

Sub calls still reify them though, because of the way ck_subr cur-
rently works.

Constant proxies are still upgraded to full GVs for now, just to mini-
mise the churn per patch.

This makes it possible for OP_GVs to point to things other than GVs,
and these things are stored in the pad under threads.  Hence, pad_tidy
could turn on PADTMP, and then IS_PADGV becomes true when it is
upgraded to a glob, so refgen will fail assertions.  There is actually
no need to turn on PADTMP in pad_tidy, since it will already be on for
op targets.  (We need to get rid of IS_PADGV one of these days.  It
doesn’t actually do anything.)

30 hours agoop.c: ck_rvconst: Inline the noexpand var
Father Chrysostomos [Wed, 10 Sep 2014 21:23:53 +0000]
op.c: ck_rvconst: Inline the noexpand var

It is only used once now, and its name is about to become confusing,
as GV_NOEXPAND will be used for all CVs.

30 hours agoIncrease $Attribute::Handlers::VERSION to 0.97
Father Chrysostomos [Sun, 7 Sep 2014 05:59:36 +0000]
Increase $Attribute::Handlers::VERSION to 0.97

30 hours agoTweak Peek.t
Father Chrysostomos [Sat, 6 Sep 2014 23:22:53 +0000]
Tweak Peek.t

beab08741 introduced XSUB constants, but the code it added to
newATTRSUB does not set CvSTASH if there is already a CV stub.  It
does set it if there is no sub there at all (because it goes through
newCONSTSUB).

Recent changes have made constant declarations like ‘sub foo(){}’
put just a constant reference in the stash if possible, the way con-
stant.pm does.  When this gets upgraded to a typeglob, the CV is rei-
fied via newCONSTSUB, so it gets a CvSTASH pointer.

CvSTASH on a constant sub really makes no difference in practice.
It’s mostly cosmetic.

This exercises the two code paths with the oldest perl installa-
tion I have:

$ /opt/bin/perl5.8.8 -MDevel::Peek -e 'BEGIN{\&foo} sub foo(){3} Dump \&foo'
SV = RV(0x9baa18) at 0x98d580
  REFCNT = 1
  FLAGS = (TEMP,ROK)
  RV = 0x9b7398
  SV = PVCV(0x9b4810) at 0x9b7398
    REFCNT = 2
    FLAGS = (POK,pPOK,CONST)
    IV = 0
    NV = 0
    PROTOTYPE = ""
    COMP_STASH = 0x98d4a8 "main" <----------
    ROOT = 0x0
    XSUB = 0x5bb44
    XSUBANY = 10018864
    GVGV::GV = 0x98df7c "main" :: "foo"
    FILE = "-e"
    DEPTH = 0
    FLAGS = 0x200
    OUTSIDE_SEQ = 96
    PADLIST = 0x98e228
    PADNAME = 0x98e24c(0x0) PAD = 0x98e264(0x22d560)
    OUTSIDE = 0x98df34 (UNIQUE)
$ /opt/bin/perl5.8.8 -MDevel::Peek -e 'sub foo(){3} Dump \&foo'
SV = RV(0xc11018) at 0xbe3b80
  REFCNT = 1
  FLAGS = (TEMP,ROK)
  RV = 0xbe4570
  SV = PVCV(0xc0ae10) at 0xbe4570
    REFCNT = 2
    FLAGS = (POK,pPOK,CONST)
    IV = 0
    NV = 0
    PROTOTYPE = ""
    COMP_STASH = 0x0 <--------------------------
    ROOT = 0x0
    XSUB = 0x5bb44
    XSUBANY = 12469628
    GVGV::GV = 0xbe3c40 "main" :: "foo"
    FILE = "-e"
    DEPTH = 0
    FLAGS = 0x200
    OUTSIDE_SEQ = 0
    PADLIST = 0x0
    OUTSIDE = 0x0 (null)

30 hours agoFix-ups for Attribute::Handlers
Father Chrysostomos [Sat, 6 Sep 2014 20:09:05 +0000]
Fix-ups for Attribute::Handlers

It was making unreliable assumptions about the contents of stashes.

30 hours agosv.h: Expand comment about potential SVf_UTF8 conflict
Father Chrysostomos [Mon, 1 Sep 2014 01:05:49 +0000]
sv.h: Expand comment about potential SVf_UTF8 conflict

30 hours agoAvoid creating GVs when subs are declared
Father Chrysostomos [Mon, 1 Sep 2014 03:13:21 +0000]
Avoid creating GVs when subs are declared

This patch changes ‘sub foo {...}’ declarations to store subroutine
references in the stash, to save memory.

Typeglobs still notionally exist.  Accessing CvGV(cv) will reify them.
Hence, currently the savings are lost when a sub call is compiled.

$ ./miniperl -e 'sub foo{} BEGIN { warn $::{foo} } foo(); BEGIN { warn $::{foo} }'
CODE(0x7f8ef082ad98) at -e line 1.
*main::foo at -e line 1.

This optimisation is skipped if the subroutine declaration contains a
package separator.

Concerning the changes in caller.t, this code:

    sub foo { print +(caller(0))[3],"\n" }
    my $fooref = delete $::{foo};
    $fooref -> ();

used to crash in 5.7.3 or thereabouts.  It was fixed by 16658 (aka
07b8c804e8) to produce ‘(unknown)’ instead.  Then in 5.13.3 it was
changed (by 803f274) to produce ‘main::__ANON__’ instead.  So the
tests are really checking that we don’t get a crash.  I think it is
acceptable that it has now changed to ‘main::foo’.

30 hours agoRemove bogus gv-handling code from toke.c
Father Chrysostomos [Sun, 7 Sep 2014 05:51:15 +0000]
Remove bogus gv-handling code from toke.c

This code was added by 211a4342c, which was actually restoring some
code that f74617600 removed.

Its purpose was to expand a proxy to a real GV after we found out that
we really are going to compile a sub call op.

This code is actually unreachable at present (sub call lookup via
rv2cv ops expands stub declarations, but not references to constants;
references to constants are not compiled to sub calls), which is a
good thing, because (1) it does not take UTF8 names into account and
(2) it does not work with rv2cv hooks or our subs, because it assumes
that the value of PL_tokenbuf is normative and can be used to
reify a glob.

30 hours agoFor lexical subs, reify CvGV from CvSTASH and CvNAME_HEK
Father Chrysostomos [Fri, 29 Aug 2014 01:26:36 +0000]
For lexical subs, reify CvGV from CvSTASH and CvNAME_HEK

From now on, the presence of a name hek implies a GV.  Any access to
CvGV will cause that implicit GV to be reified.

30 hours agoIncrease $XS::APItest::VERSION to 0.64
Father Chrysostomos [Fri, 29 Aug 2014 00:40:23 +0000]
Increase $XS::APItest::VERSION to 0.64

30 hours agoTest cv_name
Father Chrysostomos [Fri, 29 Aug 2014 00:39:48 +0000]
Test cv_name

30 hours agopad.c: Document cv_name
Father Chrysostomos [Thu, 28 Aug 2014 23:03:22 +0000]
pad.c: Document cv_name

30 hours agosv_cathek
Father Chrysostomos [Thu, 28 Aug 2014 22:59:05 +0000]
sv_cathek

This macro, intended for internal use, simplifies the code in
a couple of places.

30 hours agocv_name
Father Chrysostomos [Thu, 28 Aug 2014 22:56:30 +0000]
cv_name

An API function for getting the name of a CV.  Docs to follow.

30 hours agoTurn on CVf_LEXICAL for lexical subs
Father Chrysostomos [Fri, 29 Aug 2014 00:37:55 +0000]
Turn on CVf_LEXICAL for lexical subs

This flag will signify that lexical subs should not have package names
associated with them in error messages, etc.

30 hours agoAdd CVf_LEXICAL flag
Father Chrysostomos [Thu, 28 Aug 2014 19:55:56 +0000]
Add CVf_LEXICAL flag

Lexical subs will use this instead of CvNAMED to indicate that the
name should not include the package.

42 hours agoperldelta for d205f0c
Father Chrysostomos [Mon, 15 Sep 2014 01:16:36 +0000]
perldelta for d205f0c

42 hours agoClone lex sub names properly
Father Chrysostomos [Mon, 15 Sep 2014 00:50:11 +0000]
Clone lex sub names properly

I used share_hek_hek, which is wrong.  HEKs are not shared between
interpreters, so it must be hek_dup.

44 hours agoConsistent spaces after dots in perlsub
Father Chrysostomos [Sun, 14 Sep 2014 23:04:17 +0000]
Consistent spaces after dots in perlsub

45 hours agoperldelta for 6678689 and 56cd2ef
Father Chrysostomos [Sun, 14 Sep 2014 19:51:59 +0000]
perldelta for 6678689 and 56cd2ef

45 hours agoperldelta for b4fa55d and 0ddd4a5
Father Chrysostomos [Sun, 14 Sep 2014 19:50:04 +0000]
perldelta for b4fa55d and 0ddd4a5

45 hours agoperldelta for 2c1f00b/#122747
Father Chrysostomos [Sun, 14 Sep 2014 19:43:20 +0000]
perldelta for 2c1f00b/#122747

45 hours agoperldelta for c4c61c6
Father Chrysostomos [Sun, 14 Sep 2014 19:24:46 +0000]
perldelta for c4c61c6

45 hours agoperldelta for 1542cb4/#122728
Father Chrysostomos [Sun, 14 Sep 2014 18:23:52 +0000]
perldelta for 1542cb4/#122728

45 hours agoperldelta for cfc7ef1
Father Chrysostomos [Sun, 14 Sep 2014 15:02:10 +0000]
perldelta for cfc7ef1

2 days agoDarwin: set ld to 'cc' if $cc is 'cc' or empty, $cc otherwise.
Jarkko Hietaniemi [Sun, 14 Sep 2014 17:28:00 +0000]
Darwin: set ld to 'cc' if $cc is 'cc' or empty, $cc otherwise.

2 days agoadd test for rt122747
Yves Orton [Sun, 14 Sep 2014 16:55:12 +0000]
add test for rt122747

2 days agoshare_hek_hek "return value" is unused here.
Jarkko Hietaniemi [Sun, 14 Sep 2014 13:47:43 +0000]
share_hek_hek "return value" is unused here.

(noticed by gcc 4.9)

2 days agoDarwin: if cc is explicitly gcc/g++, use it also as ld.
Jarkko Hietaniemi [Sun, 14 Sep 2014 02:06:13 +0000]
Darwin: if cc is explicitly gcc/g++, use it also as ld.

2 days agoDefine Perl_isfinite only if not already defined.
Jarkko Hietaniemi [Sun, 14 Sep 2014 01:13:10 +0000]
Define Perl_isfinite only if not already defined.

2 days agoperldelta: Entry for [perl #122655].
Karl Williamson [Sun, 14 Sep 2014 15:17:41 +0000]
perldelta: Entry for [perl #122655].

5.20 regression: '"X" !~ /[x]/i'

It looks like this patch, included in 5.20.1, did not get a perldelta
entry for that release.

2 days agoperldelta: Note bug fix to suppress repeated warnings
Karl Williamson [Sun, 14 Sep 2014 14:53:54 +0000]
perldelta: Note bug fix to suppress repeated warnings

2 days agoperldelta: Mention -T -B changes
Karl Williamson [Sun, 14 Sep 2014 14:37:37 +0000]
perldelta: Mention -T -B changes

2 days agoCopy perl5201delta into blead
Steve Hay [Sun, 14 Sep 2014 14:20:36 +0000]
Copy perl5201delta into blead

2 days agoChanged Module-CoreList version to how it should be
Chris 'BinGOs' Williams [Sun, 14 Sep 2014 14:02:18 +0000]
Changed Module-CoreList version to how it should be

That's the last time I try and be clever and use a tool to
update versions

2 days agoRemove the corevers.t from Module-CoreList and amend corelist porting test
Chris 'BinGOs' Williams [Sun, 14 Sep 2014 13:53:57 +0000]
Remove the corevers.t from Module-CoreList and amend corelist porting test

2 days agoBump Module-CoreList versions again
Chris 'BinGOs' Williams [Sun, 14 Sep 2014 13:48:45 +0000]
Bump Module-CoreList versions again

I've removed all the v5.21.4 data from the release I am going to
make to CPAN, so as not to break blead the version needs bumping
again to a higher version than I am going to release.

2 days agoBump Module-CoreList versions to new date stamped version
Chris 'BinGOs' Williams [Sun, 14 Sep 2014 13:46:00 +0000]
Bump Module-CoreList versions to new date stamped version

2 days agoAdd epigraph for 5.20.1
Steve Hay [Sun, 14 Sep 2014 13:26:46 +0000]
Add epigraph for 5.20.1

2 days agoPerl 5.20.1 today
Steve Hay [Sun, 14 Sep 2014 11:30:17 +0000]
Perl 5.20.1 today

2 days agoPerl 5.20.1 today
Steve Hay [Sun, 14 Sep 2014 11:30:09 +0000]
Perl 5.20.1 today

2 days agoUse Perl_frexp, and cast arg to NV as appropriate.
Jarkko Hietaniemi [Sat, 13 Sep 2014 17:02:49 +0000]
Use Perl_frexp, and cast arg to NV as appropriate.

2 days agoWarning about the va_arg vs long doubles.
Jarkko Hietaniemi [Sat, 13 Sep 2014 15:54:57 +0000]
Warning about the va_arg vs long doubles.

2 days agoUntangle the fp value retrieval.
Jarkko Hietaniemi [Sat, 13 Sep 2014 01:55:58 +0000]
Untangle the fp value retrieval.

2 days agoDisable isfinite on VMS.
Craig A. Berry [Sat, 13 Sep 2014 22:24:20 +0000]
Disable isfinite on VMS.

While the macro exists (in fp.h, not math.h) and it does work on
ordinary doubles, it does not work on long doubles, which is the
only use of it so far in the Perl core.  In Perl_sv_vcatpvfn_flags,
isfinite is testing a long double even when not configured with
long doubles (assuming long doubles are at least available).

So the better part of valor is to say we don't have it and use the
fallback.  Gets t/op/infnan.t #13 passing.

2 days agoObsolete comment in sv.c:utf8_mg_pos_cache_update
Father Chrysostomos [Sat, 13 Sep 2014 19:54:07 +0000]
Obsolete comment in sv.c:utf8_mg_pos_cache_update

ab8be49d3 added this comment and the SvPOKp check.  Half the comment
is not relevant any more, since we stopped caching UTF8 offsets on
references in commit d91e94e1ac8.  The SvPOKp check is still a good
idea, though.

$ perl5.14.4 -e 'use overload q|""| => sub { "\x{100}" }; $_ = bless[]; $__ = substr $_,0,1; use Devel::Peek; Dump $_'
SV = PVMG(0x7fb2f2856738) at 0x7fb2f283a348
  REFCNT = 1
  FLAGS = (SMG,ROK,UTF8)
  IV = 0
  NV = 0
  RV = 0x7fb2f2806d00
  SV = PVAV(0x7fb2f2807ec0) at 0x7fb2f2806d00
    REFCNT = 1
    FLAGS = (OBJECT,OVERLOAD)
    STASH = 0x7fb2f2806b68 "main"
    ARRAY = 0x0
    FILL = -1
    MAX = -1
    ARYLEN = 0x0
    FLAGS = (REAL)
  PV = 0x7fb2f2806d00 "" [UTF8 ""]
  CUR = 0
  LEN = 0
  MAGIC = 0x7fb2f240f708
    MG_VIRTUAL = &PL_vtbl_utf8
    MG_TYPE = PERL_MAGIC_utf8(w)
    MG_LEN = 1
$ perl5.18.1 -e 'use overload q|""| => sub { "\x{100}" }; $_ = bless[]; $__ = substr $_,0,1; use Devel::Peek; Dump $_'
SV = IV(0x7fc048837c40) at 0x7fc048837c50
  REFCNT = 1
  FLAGS = (ROK,UTF8)
  RV = 0x7fc0488060e8
  SV = PVAV(0x7fc048807e80) at 0x7fc0488060e8
    REFCNT = 1
    FLAGS = (OBJECT)
    STASH = 0x7fc048805f50 "main"
    ARRAY = 0x0
    FILL = -1
    MAX = -1
    ARYLEN = 0x0
    FLAGS = (REAL)

3 days agotoke.c: Remove redundant PL_expect check
Father Chrysostomos [Sat, 13 Sep 2014 19:13:29 +0000]
toke.c: Remove redundant PL_expect check

PL_expect is only ever XREF when we already know there is an open
brace.  So we would never even get to this code path.

3 days agoUpdate IO-Socket-IP to CPAN version 0.32
Chris 'BinGOs' Williams [Sat, 13 Sep 2014 18:44:08 +0000]
Update IO-Socket-IP to CPAN version 0.32

  [DELTA]

0.32    2014/09/12 10:11:27
        [CHANGES]
         * Implementation of Timeout for ->connect (RT92075)

3 days agoMake the link not a link.
Jarkko Hietaniemi [Sat, 13 Sep 2014 16:52:12 +0000]
Make the link not a link.

3 days agoMention inf/nan and POSIX C99 math improvements.
Jarkko Hietaniemi [Sat, 13 Sep 2014 15:32:16 +0000]
Mention inf/nan and POSIX C99 math improvements.

3 days agoSemicolon before ellipsis inside block disambiguates.
James E Keenan [Sat, 13 Sep 2014 12:51:48 +0000]
Semicolon before ellipsis inside block disambiguates.

Correct documentation which indicated that, inside a block, a semicolon after
an ellipsis statement would disambiguate between a block and a hash reference
constructor.  The semicolon must precede the ellipsis to perform this
disambiguation.

Add tests to demonstrate that whitespace around the ellipsis statement does
not impeded the disambiguation.  Add perldelta entry.

For: RT #122661

3 days agoAdd perldelta entry for 8a384d3a99 (ParseXS and locales).
James E Keenan [Sat, 13 Sep 2014 13:25:53 +0000]
Add perldelta entry for 8a384d3a99 (ParseXS and locales).