This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
6 years agomaint policy: Put notes about CPAN modules in one place
Steve Hay [Thu, 26 Feb 2015 09:29:04 +0000 (09:29 +0000)]
maint policy: Put notes about CPAN modules in one place

6 years agomaint policy: No need to keep saying "are [NOT] acceptable" now
Steve Hay [Thu, 26 Feb 2015 09:24:02 +0000 (09:24 +0000)]
maint policy: No need to keep saying "are [NOT] acceptable" now

6 years agomaint policy: Sort acceptable/unacceptable lists into rough priority order
Steve Hay [Thu, 26 Feb 2015 09:20:30 +0000 (09:20 +0000)]
maint policy: Sort acceptable/unacceptable lists into rough priority order

This commit makes no changes to any of the wording.

6 years agomaint policy: Separate acceptable/unacceptable changes into two litss
Steve Hay [Thu, 26 Feb 2015 09:17:10 +0000 (09:17 +0000)]
maint policy: Separate acceptable/unacceptable changes into two litss

6 years agoutfebcdic.h: Add comment
Karl Williamson [Wed, 31 Dec 2014 23:49:35 +0000 (16:49 -0700)]
utfebcdic.h: Add comment

6 years agoAdd fixes for testing EBCDIC to blead
Karl Williamson [Fri, 6 Mar 2015 04:49:17 +0000 (21:49 -0700)]
Add fixes for testing EBCDIC to blead

This branch contains fixes to test files to pass on both ASCII and
EBCDIC platforms.  Some of these are a couple years old, and have been
lingering in the EBCDIC branch until now.

These changes are all to core code that is not dual-lifed, and that
doesn't have any other complications.  Future commits will deal with
the ones left out of this commit.

Some commits generalize the test to work on any platform, including a
non-EBCDIC one, should there ever be one, unlikely as that may be.  The
subjects of these commits say something like "generalize to non-ASCII
platforms."

Some commits rely on EBCDIC and ASCII properties, and would have to be
revised if Perl were ever to work on a platform with some other
character set.  These typically mention EBCDIC in their subject lines.

Some commits merely skip some tests on EBCDIC platforms.  These were
because of several possible reasons.  One is that the test is specific
to a particular EBCDIC code page, and I did not wish to expend my time
in handling all those.  Another similar one is that there would be a
significant amount of work in converting the test, too much for me to
undertake, and I don't think the value added was worth it.  And some are
just because of the inherent qualities of EBCDIC don't fit.  For example
UTF-EBCDIC doesn't have the capacity to handle very large code points
that can be handled on 64-bit ASCII platforms.  Or the tests are just
for porting when we generate a Perl to ship; which we never will do on
an EBCDIC platform.

6 years agot/lib/croak/op: Fix to work on EBCDIC platforms
Karl Williamson [Wed, 4 Feb 2015 20:30:48 +0000 (13:30 -0700)]
t/lib/croak/op: Fix to work on EBCDIC platforms

6 years agot/op/sprintf.t: Generalize for EBCDIC
Karl Williamson [Thu, 27 Nov 2014 02:55:23 +0000 (19:55 -0700)]
t/op/sprintf.t: Generalize for EBCDIC

This adds a mechanism for tests to be ASCII or EBCDIC specific

6 years agoporting/checkcfgvar.t: Skip on EBCDIC platforms
Karl Williamson [Wed, 26 Nov 2014 17:54:54 +0000 (10:54 -0700)]
porting/checkcfgvar.t: Skip on EBCDIC platforms

This is failing on EBCDIC, probably because of sort order differences.
But we won't be packaging a release from one of these platforms; easiest
to just skip.

6 years agot/op/bop.t: Generalize for EBCDIC platforms
Karl Williamson [Wed, 26 Nov 2014 17:47:17 +0000 (10:47 -0700)]
t/op/bop.t: Generalize for EBCDIC platforms

This also indents some lines that should have been indented or from a
newly formed block.

6 years agot/uni/case.pl: Fix to work on non-ASCII platforms
Karl Williamson [Mon, 24 Nov 2014 18:19:22 +0000 (11:19 -0700)]
t/uni/case.pl: Fix to work on non-ASCII platforms

This involves changes to the three test files that call it

6 years agot/op/tie.t: Skip a couple tests on EBCDIC
Karl Williamson [Sun, 26 Oct 2014 03:42:34 +0000 (21:42 -0600)]
t/op/tie.t: Skip a couple tests on EBCDIC

These have different results on that platform.

6 years agot/op/inc.t: Generalize for EBCDIC
Karl Williamson [Sun, 26 Oct 2014 03:27:54 +0000 (21:27 -0600)]
t/op/inc.t: Generalize for EBCDIC

6 years agot/op/ver.t: Generalize for EBCDIC
Karl Williamson [Sun, 26 Oct 2014 03:27:20 +0000 (21:27 -0600)]
t/op/ver.t: Generalize for EBCDIC

6 years agot/lib/warnings/regcomp: SKIP some EBCDIC tests
Karl Williamson [Sun, 26 Oct 2014 03:26:20 +0000 (21:26 -0600)]
t/lib/warnings/regcomp: SKIP some EBCDIC tests

The result varies depending on EBCDIC code page

6 years agolib/overload.t: Generalize for EBCDIC
Karl Williamson [Wed, 14 Jan 2015 19:42:41 +0000 (12:42 -0700)]
lib/overload.t: Generalize for EBCDIC

6 years agoPerlIO-encoding/t/encoding.t: Generalize for non-ASCII platform
Karl Williamson [Wed, 22 Oct 2014 16:17:40 +0000 (10:17 -0600)]
PerlIO-encoding/t/encoding.t: Generalize for non-ASCII platform

6 years agot/lib/warnings/op: Skip some tests on EBCDIC
Karl Williamson [Wed, 22 Oct 2014 00:55:27 +0000 (18:55 -0600)]
t/lib/warnings/op: Skip some tests on EBCDIC

This splits a longer test into two smaller, the first is skipped on
EBCDIC because its result varies depending on code page.

6 years agot/lib/warnings/toke: Skip some tests on EBCDIC
Karl Williamson [Fri, 17 Oct 2014 03:16:24 +0000 (21:16 -0600)]
t/lib/warnings/toke: Skip some tests on EBCDIC

The results depends on the particular EBCDIC platform being used, so I
don't think it is worth the effort.

6 years agoPOSIX/t/export.t: Generalize for non-ASCII platforms
Karl Williamson [Fri, 17 Oct 2014 03:07:11 +0000 (21:07 -0600)]
POSIX/t/export.t: Generalize for non-ASCII platforms

6 years agoPod-Functions/Functions_pm.PL: Generalize for non-ASCII platforms
Karl Williamson [Fri, 17 Oct 2014 03:03:50 +0000 (21:03 -0600)]
Pod-Functions/Functions_pm.PL: Generalize for non-ASCII platforms

6 years agoHash-Util tests: Generalize for non-ASCII platforms
Karl Williamson [Fri, 17 Oct 2014 03:00:56 +0000 (21:00 -0600)]
Hash-Util tests: Generalize for non-ASCII platforms

6 years agot/op/override.t: Generalize for non-ASCII platforms
Karl Williamson [Fri, 17 Oct 2014 02:50:29 +0000 (20:50 -0600)]
t/op/override.t: Generalize for non-ASCII platforms

6 years agot/op/chars.t: Generalize to not use code page specific
Karl Williamson [Mon, 12 May 2014 01:34:08 +0000 (19:34 -0600)]
t/op/chars.t: Generalize to not use code page specific

In EBCDIC, \c? resolves to the APC character.  We can use table lookup
to find out what that is on the current platform, without having to know
what code page we are using.

6 years agoregexp_unicode_prop.t: Generalize for non-ASCII platforms
Karl Williamson [Thu, 27 Jun 2013 00:23:27 +0000 (18:23 -0600)]
regexp_unicode_prop.t: Generalize for non-ASCII platforms

6 years agot/lib/feature/implicit: Generalize for EBCDIC platforms
Karl Williamson [Wed, 26 Jun 2013 21:25:37 +0000 (15:25 -0600)]
t/lib/feature/implicit: Generalize for EBCDIC platforms

6 years agoext/XS-APItest/t/hash.t: Generalize to run on non-ASCII platforms
Karl Williamson [Tue, 21 May 2013 04:01:02 +0000 (22:01 -0600)]
ext/XS-APItest/t/hash.t: Generalize to run on non-ASCII platforms

6 years agot/lib/feature/implicit: Generalize for non-ASCII platforms
Karl Williamson [Tue, 21 May 2013 03:54:01 +0000 (21:54 -0600)]
t/lib/feature/implicit: Generalize for non-ASCII platforms

6 years agot/op/coreamp.t: Generalize for non-ASCII platfomrs
Karl Williamson [Fri, 19 Apr 2013 19:58:12 +0000 (13:58 -0600)]
t/op/coreamp.t: Generalize for non-ASCII platfomrs

6 years agot/re/re_tests: Some tests are platform-specific
Karl Williamson [Thu, 18 Apr 2013 03:49:10 +0000 (21:49 -0600)]
t/re/re_tests: Some tests are platform-specific

6 years agot/io/crlf.t: Generalize for non-ASCII platforms
Karl Williamson [Wed, 17 Apr 2013 14:22:36 +0000 (08:22 -0600)]
t/io/crlf.t: Generalize for non-ASCII platforms

6 years agoext/B/t/b.t: Generalize for non-ASCII platforms
Karl Williamson [Tue, 16 Apr 2013 18:13:07 +0000 (12:13 -0600)]
ext/B/t/b.t: Generalize for non-ASCII platforms

6 years agot/op/warn.t: Generalize for non-ASCII platforms
Karl Williamson [Tue, 16 Apr 2013 17:50:04 +0000 (11:50 -0600)]
t/op/warn.t: Generalize for non-ASCII platforms

6 years agore/reg_email.t: Generalize for non-ASCII platforms
Karl Williamson [Tue, 16 Apr 2013 16:18:02 +0000 (10:18 -0600)]
re/reg_email.t: Generalize for non-ASCII platforms

This replaces all the hard-coded hex character values.  It uses the new
(?[ ]) notation.  I checked that the compiled regex matches the exact
same code points as before these changes.

6 years agoext/XS-APItest/t/svpeek.t: Extend to EBCDIC platforms
Karl Williamson [Sat, 13 Apr 2013 22:19:20 +0000 (16:19 -0600)]
ext/XS-APItest/t/svpeek.t: Extend to EBCDIC platforms

6 years agoext/XS-APItest/t/svpv_magic.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 13 Apr 2013 22:14:35 +0000 (16:14 -0600)]
ext/XS-APItest/t/svpv_magic.t: Generalize for non-ASCII platforms

6 years agolib/utf8.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 13 Apr 2013 21:35:52 +0000 (15:35 -0600)]
lib/utf8.t: Generalize for non-ASCII platforms

This includes choosing a different code point that has 3 bytes in both
UTF-8 and UTF-EBCDIC, so that the pos numbers work for both.

6 years agot/uni/parser.t: Extend to EBCDIC platforms
Karl Williamson [Sat, 13 Apr 2013 21:16:44 +0000 (15:16 -0600)]
t/uni/parser.t: Extend to EBCDIC platforms

6 years agot/uni/method.t: Extend to EBCDIC platforms
Karl Williamson [Sat, 13 Apr 2013 20:41:46 +0000 (14:41 -0600)]
t/uni/method.t: Extend to EBCDIC platforms

I couldn't figure out a way to not use the hard-coded values

6 years agot/op/magic.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 13 Apr 2013 20:26:09 +0000 (14:26 -0600)]
t/op/magic.t: Generalize for non-ASCII platforms

6 years agot/io/through.t: Generalize for EBCDIC platforms
Karl Williamson [Sat, 13 Apr 2013 19:36:41 +0000 (13:36 -0600)]
t/io/through.t: Generalize for EBCDIC platforms

This uses hard-coded values for EBCDIC because of the shell issues

6 years agot/op/goto.t: Generalize for non-ASCII platforms
Karl Williamson [Sun, 7 Apr 2013 16:45:14 +0000 (10:45 -0600)]
t/op/goto.t: Generalize for non-ASCII platforms

6 years agot/re/pat.t: Generalize for EBCDIC
Karl Williamson [Thu, 4 Apr 2013 02:15:17 +0000 (20:15 -0600)]
t/re/pat.t: Generalize for EBCDIC

6 years agot/uni/overload.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 6 Apr 2013 05:34:50 +0000 (23:34 -0600)]
t/uni/overload.t: Generalize for non-ASCII platforms

6 years agot/uni/method.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 6 Apr 2013 05:34:13 +0000 (23:34 -0600)]
t/uni/method.t: Generalize for non-ASCII platforms

6 years agot/op/utf8magic.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 6 Apr 2013 05:33:28 +0000 (23:33 -0600)]
t/op/utf8magic.t: Generalize for non-ASCII platforms

6 years agot/op/evalbytes.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 6 Apr 2013 05:32:57 +0000 (23:32 -0600)]
t/op/evalbytes.t: Generalize for non-ASCII platforms

6 years agot/op/utfhash.t: Fix to work on EBCDIC 1047
Karl Williamson [Sat, 6 Apr 2013 19:01:54 +0000 (13:01 -0600)]
t/op/utfhash.t: Fix to work on EBCDIC 1047

This .t thought it could have an __END__ in the middle of DATA input,
and the first read would read in up to that, and the second would read
the rest.  In bisecting, I couldn't find a time when this ever worked.
Now this has a marker, and does a split on that marker, choosing the
first or second half depending.

Note that this only works on ASCII and EBCDIC 1047 platforms.  It could
be extended for the other code pages Perl purportedly supports.

6 years agot/re/pat_re_eval.t: Generalize for non-ASCII platforms
Karl Williamson [Tue, 2 Apr 2013 04:29:16 +0000 (22:29 -0600)]
t/re/pat_re_eval.t: Generalize for non-ASCII platforms

6 years agot/op/split.t: EBCDIC fixes
Karl Williamson [Tue, 2 Apr 2013 03:08:20 +0000 (21:08 -0600)]
t/op/split.t: EBCDIC fixes

6 years agore/pat_advanced.t: EBCDIC fixes
Karl Williamson [Tue, 2 Apr 2013 02:43:03 +0000 (20:43 -0600)]
re/pat_advanced.t: EBCDIC fixes

This includes not skipping some EBCDIC that formerly was, since we now
have testing infrastructure that makes this easy.

6 years agot/io/utf8.t: EBCDIC fixes
Karl Williamson [Tue, 2 Apr 2013 02:01:04 +0000 (20:01 -0600)]
t/io/utf8.t: EBCDIC fixes

6 years agot/uni/fold.t: Generalize for non-ASCII platforms
Karl Williamson [Sat, 30 Mar 2013 18:32:09 +0000 (12:32 -0600)]
t/uni/fold.t: Generalize for non-ASCII platforms

6 years agolib/feature/bundle: Generalize for non-ASCII platforms
Karl Williamson [Wed, 27 Mar 2013 22:55:55 +0000 (16:55 -0600)]
lib/feature/bundle: Generalize for non-ASCII platforms

6 years agoXS-APItest/t/fetch_pad_names.t: Skip if EBCDIC
Karl Williamson [Wed, 27 Mar 2013 22:08:04 +0000 (16:08 -0600)]
XS-APItest/t/fetch_pad_names.t: Skip if EBCDIC

This could be ported, but there's a lot of stuff to convert

6 years agoext/XS-APItest/t/utf8.t: Fix so passes EBCDIC
Karl Williamson [Wed, 27 Mar 2013 18:05:53 +0000 (12:05 -0600)]
ext/XS-APItest/t/utf8.t: Fix so passes EBCDIC

This involves skipping much of the tests, because it would be painful to
generalize for the different EBCDIC code pages.

6 years agoext/re/t/re_funcs_u.t: Generalize for non-ASCII platforms
Karl Williamson [Wed, 27 Mar 2013 17:27:06 +0000 (11:27 -0600)]
ext/re/t/re_funcs_u.t: Generalize for non-ASCII platforms

6 years agot/op/print.t: Skip an EBCDIC test
Karl Williamson [Wed, 27 Mar 2013 16:33:44 +0000 (10:33 -0600)]
t/op/print.t: Skip an EBCDIC test

This could be fixed (the values would probably change depending on the
code page), but the code that would get exercised is unlikely to vary
depending on character set.

6 years agoop/chop.t: Fix for EBCDIC
Karl Williamson [Tue, 26 Mar 2013 02:43:38 +0000 (20:43 -0600)]
op/chop.t: Fix for EBCDIC

One test is skipped because the code point is not representable on
EBCDIC platforms.  Other tests are modified to work on EBCDIC.

6 years agot/op/lc.t: Generalize for non-ASCII platforms
Karl Williamson [Tue, 26 Mar 2013 01:56:50 +0000 (19:56 -0600)]
t/op/lc.t: Generalize for non-ASCII platforms

This had code that attempted this, but it was wrong.  The conversion to
EBCDIC must be done before the \U, or similar.

6 years agoSkip some porting tests under EBCDIC
Karl Williamson [Mon, 25 Mar 2013 21:04:14 +0000 (15:04 -0600)]
Skip some porting tests under EBCDIC

EBCDIC won't work on these because of inherent differences from ASCII,
including a different sort order.

For porting/regen.t, we use the shipped parsing rules on EBCDIC platforms

6 years agot/re/regex_sets.t: Generalize for non-ASCII platforms
Karl Williamson [Mon, 25 Mar 2013 20:59:50 +0000 (14:59 -0600)]
t/re/regex_sets.t: Generalize for non-ASCII platforms

6 years agot/op/quotemeta.t: EBCDIC fixes
Karl Williamson [Tue, 19 Mar 2013 21:27:31 +0000 (15:27 -0600)]
t/op/quotemeta.t: EBCDIC fixes

6 years agot/re/fold_grind.t: Generalize for non-ASCII platforms
Karl Williamson [Tue, 19 Mar 2013 17:32:55 +0000 (11:32 -0600)]
t/re/fold_grind.t: Generalize for non-ASCII platforms

6 years agot/uni/class.t: Generalize to work on non-ASCII platforms
Karl Williamson [Tue, 19 Mar 2013 17:20:24 +0000 (11:20 -0600)]
t/uni/class.t: Generalize to work on non-ASCII platforms

6 years agofeature/unicode_strings.t: Generalize to work on non-ASCII platforms
Karl Williamson [Tue, 19 Mar 2013 17:01:57 +0000 (11:01 -0600)]
feature/unicode_strings.t: Generalize to work on non-ASCII platforms

6 years agolib/dumpvar.pl: Generalize for non-ASCII platforms
Karl Williamson [Sun, 2 Nov 2014 03:10:48 +0000 (21:10 -0600)]
lib/dumpvar.pl: Generalize for non-ASCII platforms

6 years agore/charset.t: Generalize for non-ASCII platforms
Karl Williamson [Fri, 15 Mar 2013 17:57:24 +0000 (11:57 -0600)]
re/charset.t: Generalize for non-ASCII platforms

This converts the hard-coded character numbers to native, so will work
on any platform.  It also adds some tests, and improves some test names

6 years agoAPItest/t/handy.t: Generalize for non-ASCII platforms
Karl Williamson [Wed, 13 Mar 2013 22:17:39 +0000 (16:17 -0600)]
APItest/t/handy.t: Generalize for non-ASCII platforms

6 years agot/base/lex.t: Generalize for EBCDIC platforms
Karl Williamson [Mon, 11 Mar 2013 04:17:31 +0000 (22:17 -0600)]
t/base/lex.t: Generalize for EBCDIC platforms

\xE2 is 'S' in EBCDIC, and so is ASCII there.  We need something that is
an alpha on both platforms that isn't ASCII.  \xDF works.

Also, 65 may not be "A" on a non-ASCII platform, so use 65 instead of
'A' where 65 is wanted

6 years agolib/Unicode/UCD.t: White-space only
Karl Williamson [Wed, 26 Jun 2013 22:06:47 +0000 (16:06 -0600)]
lib/Unicode/UCD.t: White-space only

Properly indent within a block

6 years agoperldelta for previous commit (threads upgrade)
Steve Hay [Thu, 5 Mar 2015 23:00:35 +0000 (23:00 +0000)]
perldelta for previous commit (threads upgrade)

6 years agoUpgrade to threads 1.98
Jerry D. Hedden [Thu, 5 Mar 2015 05:28:51 +0000 (00:28 -0500)]
Upgrade to threads 1.98

6 years agolib/Config.t: Skip tests that are invalid on os390
Karl Williamson [Fri, 21 Nov 2014 16:22:53 +0000 (09:22 -0700)]
lib/Config.t: Skip tests that are invalid on os390

6 years agot/comp/require.t: No longer needed to skip on EBCDIC
Karl Williamson [Wed, 29 Oct 2014 16:08:46 +0000 (10:08 -0600)]
t/comp/require.t: No longer needed to skip on EBCDIC

6 years agot/uni/write.t: Don't skip EBCDIC tests
Karl Williamson [Mon, 9 Jun 2014 18:30:23 +0000 (12:30 -0600)]
t/uni/write.t: Don't skip EBCDIC tests

This now passes on os390

6 years agot/lib/warnings/utf8: Update skip message
Karl Williamson [Wed, 26 Jun 2013 21:28:41 +0000 (15:28 -0600)]
t/lib/warnings/utf8: Update skip message

It is not that EBCDIC platforms don't check for malformedness; it is
that a different message gets generated on them, and it's too much
bother to figure it out for each such platform.

6 years agot/test.pl: EBCDIC, utf8 fixes
Karl Williamson [Mon, 2 Mar 2015 22:03:08 +0000 (15:03 -0700)]
t/test.pl: EBCDIC, utf8 fixes

This changes the display of all low-ordinal EBCDIC controls to octal,
instead of just the ones that correspond to the ASCII C0 controls.

It also makes sure that [:print:] thinks all non-ASCII are
non-printable.

6 years agolib/Unicode/UCD.t: Fixes to work on EBCDIC
Karl Williamson [Mon, 2 Mar 2015 22:00:25 +0000 (15:00 -0700)]
lib/Unicode/UCD.t: Fixes to work on EBCDIC

These were broken by the upgrade of Unicode::UCD to version 0.61

6 years agolib/open.t: Fix skip count
Karl Williamson [Thu, 5 Mar 2015 19:08:48 +0000 (12:08 -0700)]
lib/open.t: Fix skip count

6 years agoData::Dumper/t/dumper.t: Fix comments
Karl Williamson [Thu, 5 Mar 2015 17:34:08 +0000 (10:34 -0700)]
Data::Dumper/t/dumper.t: Fix comments

6 years agoreadline should behave as <>, not <<>>
Rafael Garcia-Suarez [Thu, 5 Mar 2015 16:37:33 +0000 (17:37 +0100)]
readline should behave as <>, not <<>>

This fixes bug #123990. The cause was that one promotion to
OP_READLINE was not cleaning the special flag on that op.

6 years agosprinkle NOTREACHED and FALLTHROUGH
David Mitchell [Thu, 5 Mar 2015 11:44:37 +0000 (11:44 +0000)]
sprinkle NOTREACHED and FALLTHROUGH

Coverity complains bitterly about many switch statements in lots of files.

Many of these are of the form:

    case FOO:
        ...
        goto baz;
    case BAR:
        ....

and something as smart as Coverity shouldn't really be complaining about
a missing 'break' when the last statement of the previous branch is an
unconditional goto/return/continue. But I've shoved in a bunch of
'NOTREACHED' to hopefully shut it up.

Missing 'FALLTHROUGH' comments were more reasonable, and I've added them
where appropriate.

The only confusing one was cx_dup(), where the various CXt_LOOP_ branches
all fell through to the next one, and it took a while to figure out that
those weren't bugs.

6 years agopp.c: remove unneeded SPAGAIN's
David Mitchell [Thu, 5 Mar 2015 11:01:01 +0000 (11:01 +0000)]
pp.c: remove unneeded SPAGAIN's

Spotted by Coverity.

I've left the SPAGAIN but commented out, in case future changes
to the code make them needed again.

6 years agodocument why S_maybe_multideref is Coverity-safe
David Mitchell [Thu, 5 Mar 2015 10:28:28 +0000 (10:28 +0000)]
document why S_maybe_multideref is Coverity-safe

6 years agofollowup for MEM_WRAP_CHECK
David Mitchell [Wed, 4 Mar 2015 14:49:22 +0000 (14:49 +0000)]
followup for MEM_WRAP_CHECK

On my previous commit, I failed to save the edited handy.h file where
I had edited the comments, so they were missed from the commit.

6 years agofurther tweak MEM_WRAP_CHECK()
David Mitchell [Wed, 4 Mar 2015 14:22:27 +0000 (14:22 +0000)]
further tweak MEM_WRAP_CHECK()

My recent mods to make it often constant-fold at time-time were
generating Coverity warnings when the expression happened to equal
(cond ? 1 : 1).

6 years agoConsistently use NOT_REACHED; /* NOTREACHED */
Jarkko Hietaniemi [Wed, 4 Mar 2015 12:37:33 +0000 (07:37 -0500)]
Consistently use NOT_REACHED; /* NOTREACHED */

Both needed: the macro is for compilers, the comment for static checkers.

(This doesn't address whether each spot is correct and necessary.)

6 years agoUpgrade Text-Balanced from version 2.02 to 2.03
Steve Hay [Wed, 4 Mar 2015 08:43:41 +0000 (08:43 +0000)]
Upgrade Text-Balanced from version 2.02 to 2.03

This incorporates the blead customizations, with no other changes except
the version bump.

6 years agothreads is no longer customized, as of commit c0ff91434b
Steve Hay [Wed, 4 Mar 2015 08:39:17 +0000 (08:39 +0000)]
threads is no longer customized, as of commit c0ff91434b

6 years agothreads is no longer customized, as of commit c0ff91434b
Steve Hay [Wed, 4 Mar 2015 08:14:20 +0000 (08:14 +0000)]
threads is no longer customized, as of commit c0ff91434b

6 years agoUpgrade to threads 1.97
Jerry D. Hedden [Tue, 3 Mar 2015 23:30:54 +0000 (18:30 -0500)]
Upgrade to threads 1.97

Committer actions: (1) regen for t/porting/customized.dat.
(2) perldelta for update to threads.

6 years agoIRIX: floating point: do not flush to zero
Jarkko Hietaniemi [Wed, 4 Mar 2015 00:15:25 +0000 (19:15 -0500)]
IRIX: floating point: do not flush to zero

Fix for [perl #123767] IRIX64 blead (ddce084a) opbasic/arith.t failure

Use the PERL_SYS_FPU_INIT to initialize the FPU flags appropriately.

6 years agoMake MEM_WRAP_CHECK more compile-time
David Mitchell [Thu, 26 Feb 2015 18:42:16 +0000 (18:42 +0000)]
Make MEM_WRAP_CHECK more compile-time

MEM_WRAP_CHECK(n,t) checks whether n * sizeof(t) exceeds the
memory size, and so is likely to wrap.

When the type of n is small (e.g. a U8), you used to get compiler warnings
about a comparison always being true. This was avoided by adding 0.0. Now
Coverity complains that you're doing a floating-point comparison with the
results of an integer division.

Instead of adding 0.0, instead add some more compile-time checks
that will cause the runtime check to be skipped when the maximum value
of n (as determined by sizeof(n)) is a lot less than memory size.

On my 64-bit system this also pleasingly makes the executable 8384 bytes
smaller, implying that in many cases, the run-time check is now being
skipped.

6 years agoTru64: living dangerously, enabling the -c99 flag for cc
Jarkko Hietaniemi [Tue, 3 Mar 2015 01:46:53 +0000 (20:46 -0500)]
Tru64: living dangerously, enabling the -c99 flag for cc

16 years after C99 and 2 years after Tru64 EOL.

6 years agoRemove unused variable $DEBUGGING.
James E Keenan [Thu, 26 Feb 2015 14:02:19 +0000 (09:02 -0500)]
Remove unused variable $DEBUGGING.

It is unused and there do not appear to be any tests to be run for -DDEBUGGING
in this file.

6 years agoBump Locale-Codes from 3.33 to 3.34
Sullivan Beck [Mon, 2 Mar 2015 23:37:20 +0000 (18:37 -0500)]
Bump Locale-Codes from 3.33 to 3.34

The core modules Locale::Country, Locale::Language, and Locale::Currency (all
part of the Locale-Codes distribution) should be updated on a regular basis.
They contain "codes" from various Internet standards which change over time.

6 years agoregen uconfig.h
David Mitchell [Mon, 2 Mar 2015 15:50:09 +0000 (15:50 +0000)]
regen uconfig.h

Needed after 0cd93aca4e274765.

6 years agoConfigure: add note about nvsize sometimes lying
Jarkko Hietaniemi [Mon, 2 Mar 2015 12:00:33 +0000 (07:00 -0500)]
Configure: add note about nvsize sometimes lying

Lying in case you expect that many bytes being used for NV.

6 years ago[perl #123960] sv.c: Fix gp_free -Do output
Father Chrysostomos [Mon, 2 Mar 2015 06:42:04 +0000 (22:42 -0800)]
[perl #123960] sv.c: Fix gp_free -Do output

We try to print ‘gp_free clearing PL_stashcache for '%"HEKf"'’, but
without checking that we actually have a hek.  This has been this way
since 103f5a36127.