nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

5.18 bloat: -e'print q(ok)' now adds IO #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
t/e_perlcc.t 21 and 22 which expected no XS to be loaded, now fail because IO 
is marked as being needed, thus the test is incorrect.

check why IO is marked since 5.18 even with empty scripts.

Original issue reported on code.google.com by reini.urban on 19 Jul 2014 at 3:09

GoogleCodeExporter commented 9 years ago
fixed in branch io-stdout-i361

commit 23a84a16e22e7148692476b35c2e96ae54a48957
Author: Reini Urban <rurban@cpanel.net>
Date:   Sat Jul 19 11:00:51 2014 -0500

    C 1.49_02: skip IO::Handle bloat for *STDOUT

    Since 5.18 *STDOUT uses IO::Handle as stash, which is
    already properly initialized by PerlIO in core.
    Do not need to save it again in *STDOUT->save_magic.
    IO::Handle brought in myriads of unneeded dependencies.

    This fixes t/e_perlcc tests 21 and 22 which assumed
    that an empty script will not add XS modules.

Original comment by reini.urban on 19 Jul 2014 at 5:45

GoogleCodeExporter commented 9 years ago
Merged into master

Original comment by reini.urban on 19 Jul 2014 at 9:52