In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/f60eaa6ecf8e44162194a4eb2d9560205d4ee575?hp=3256503ed11b2de442930266ddda2e95557511fe>
- Log ----------------------------------------------------------------- commit f60eaa6ecf8e44162194a4eb2d9560205d4ee575 Author: H.Merijn Brand <h.m.br...@xs4all.nl> Date: Mon Jul 2 18:25:16 2018 +0200 Disable optimizer on pp_pack for HP C-ANSI-C on HP-UX 11.11 with optimize levels +O1 and higher: $ ./miniperl -I./lib -wE'$a = pack "Cn4", 1, 3726, 32, 2' Character in 'C' format wrapped in pack at -e line 1. with +O0 (or no -O/+O) all goes well Chances are too small to care that this will ever be fixed This was found as the Test::Smoke run on this system created a log-file of over 350 Mb with 4016149 warnings like the above ----------------------------------------------------------------------- Summary of changes: hints/hpux.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/hints/hpux.sh b/hints/hpux.sh index 91a4d7d388..a2a6bb01b2 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -403,6 +403,7 @@ doop_cflags='' op_cflags='' opmini_cflags='' perlmain_cflags='' +pp_pack_cflags='' fi case "$ccisgcc" in @@ -458,13 +459,16 @@ case "$ccisgcc" in B.11.11.*) # opmini.c and op.c with +O2 makes the compiler die # of internal error, for perlmain.c only +O0 (no opt) - # works. + # works. Disable +Ox for pp_pack, as the optimizer + # causes this unit to fail (not a limit issue) case "$optimize" in - *O2*) opt=`echo "$optimize" | sed -e 's/O2/O1/'` - opmini_cflags="optimize=\"$opt\"" - op_cflags="optimize=\"$opt\"" - perlmain_cflags="optimize=\"\"" - ;; + *O[12]*) + opt=`echo "$optimize" | sed -e 's/O2/O1/' -e 's/ *+Onolimit//'` + opmini_cflags="optimize=\"$opt\"" + op_cflags="optimize=\"$opt\"" + perlmain_cflags="optimize=\"\"" + pp_pack_cflags="optimize=\"\"" + ;; esac esac ;; -- Perl5 Master Repository