develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #55302] cc_runtime syntax error

Thread Previous | Thread Next
From:
Reini Urban
Date:
June 5, 2008 02:16
Subject:
Re: [perl #55302] cc_runtime syntax error
Message ID:
6910a60806050216l41df9e4cl8075218609aa23@mail.gmail.com
2008/6/4 Reini Urban via RT <perlbug-followup@perl.org>:
> cc_runtime patch for 5.8.9, 5.10.x and blead.
>
> Syntax error when using B::CC with threads and eval.
> This exists for some years. Because we never had B::CC tests.

In fact this bug existed since its infant beginnings,
but only for threaded perls which use eval.

I've fixed it now in B-C-1.04_18 backwards compatible.

And: I would appreciate if this header file would stay in core for now.

> diff -u cc_runtime.h.orig cc_runtime.h
> --- cc_runtime.h.orig   2007-12-18 11:47:07.000000000 +0100
> +++ cc_runtime.h        2008-06-04 22:18:26.625000000 +0200
> @@ -54,7 +54,7 @@
>        switch (ret) {                          \
>        case 0:                                 \
>            PL_op = ppaddr(aTHX);               \
> -           if (PL_op != nxt) CALLRUNOPS();     \
> +           if (PL_op != nxt) CALLRUNOPS(aTHX); \
>            JMPENV_POP;                         \
>            break;                              \
>        case 1: JMPENV_POP; JMPENV_JUMP(1);     \
-- 
Reini Urban

Thread Previous | Thread Next


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