Bug#869122: perl: 5.26 FTBFS on hppa: broken miniperl?

John David Anglin dave.anglin at bell.net
Mon Jul 24 01:32:04 UTC 2017


On 2017-07-23, at 4:14 PM, John David Anglin wrote:

> Perl_custom_op_get_field (my_perl=0x1e3008, o=0x5aee38, field=XOPe_xop_peep)
>    at op.c:14853
> 14853       if (!he && PL_custom_op_names &&
> (gdb)
> 14879           if(field == XOPe_xop_ptr) {
> (gdb)
> 14902                   switch(field) {
> (gdb)
> 14884                   switch(field) {

Gcc optimizes the two switch statements in Perl_custom_op_get_field() into one.  It appears the
address of xop gets lost when xop points to xop_null.

The attached patch seems to work around the problem compiling op.c.  This would appear to be
a generic gcc bug.

I also removed the hppa optimization hack for compiling op.c.  It no longer seems to work as the
last -O option is -O2.  Adrian's optimization work around changed the last optimization to -O0.

Maybe the patch will also fix the sh build.

Dave
--
John David Anglin	dave.anglin at bell.net


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: perl-5.26.0-hppa.diff.txt
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20170723/2109caf4/attachment-0001.txt>


More information about the Perl-maintainers mailing list