develooper Front page | perl.perl5.porters | Postings from November 2011

[perl #97942] [PATCH] Add -DO option to disable optimizations and disable constant folding and the peephole optimizer when used.

From:
Father Chrysostomos via RT
Date:
November 26, 2011 17:04
Subject:
[perl #97942] [PATCH] Add -DO option to disable optimizations and disable constant folding and the peephole optimizer when used.
Message ID:
rt-3.6.HEAD-30852-1322355891-1804.97942-15-0@perl.org
On Sun Aug 28 07:48:48 2011, ggoossen wrote:
> 
> This is a bug report for perl from gerard@ggoossen.net,
> generated with the help of perlbug 1.39 running under perl 5.15.2.
> 
> From aa47563c38380baa2e72acca68124d8b796a4b9e Mon Sep 17 00:00:00 2001
> From: Gerard Goossen <gerard@ggoossen.net>
> Date: Sat, 27 Aug 2011 16:48:38 +0200
> Subject: [PATCH] Add -DO option to disable optimizations and disable
> constant
>  folding and the peephole optimizer when used.
> 
> Running the tests with PERL5OPT_TEST=-DOq reveals the following
> problems:
> - overloaded <> causes strange error
> - deref type detection in derefed lvalue subs goes wrong.
> - constant expressions produce modifiable temporaries instead of
>   read-only constants
> - for (revert @a) does no longer alias the elements of @a
> - warnings about uninitialized values miss some variable names
> - limits $[ assignments which are possible
> - problem with line numbers in coresubs errors
> ---
>  op.c            |    4 ++++
>  perl.c          |    5 +++--
>  perl.h          |    8 +++++++-
>  pod/perlrun.pod |    1 +
>  4 files changed, 15 insertions(+), 3 deletions(-)

I tried applying this patch again, but it still causes test failures
under the new option.  Were you planning to address those?

-- 

Father Chrysostomos




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About