develooper Front page | perl.perl5.porters | Postings from May 2015

Re: [perl #125096] perl 5.20.2 fails to compile with gcc 5.1.0 -flto-O2

Thread Previous
From:
Steffen Hau
Date:
May 7, 2015 16:01
Subject:
Re: [perl #125096] perl 5.20.2 fails to compile with gcc 5.1.0 -flto-O2
Message ID:
554B4166.401@hauihau.de
Am 07.05.2015 um 08:35 schrieb H. Merijn Brand via RT:
>
> [ Not high priority, as this involves *A LOT* of work ]
>
> There are plans to move the meta/dist framework towards a newer version
> As perl has modified quite a lot of the underlying meta-units, this may
> cause hundreds of units to change *and check* before such an
> integration can be accepted.
>
> That said, here's the feedback from the future :)
>
> --8<---
> The current dist (SVN version, not yet found the time / inclination
> to migrate to git) has switched to compile-time tests whenever
> possible since 2008.
>
> In particular, the current intsize.U unit uses "static asserts"
> to detect through compile-time errors whether an assertion holds.
> This allows to compute the size of all types via compile tests,
> without having to run anything.
>
> Even IEEE float endianness is now determined without running a program.
> No static assert here however: look at d_ieee754.U.
>
> The rationale for moving out of run-tests is that it prevents
> cross-compilation to occur.  But when you cross-compile, you
> always have a compiler handy...  Since at some point I had to
> cross-compile gtk-gnutella with MinGW, I had to move away from
> run-tests as much as possible!
> -->8---
>
> As I do not have unlimited resources, and if I had they were to be
> shared amongst several other areas of interest, this might take some
> time to settle.
>
> In summary, Yes, moving to compile-only is a good plan and certainly an
> improvement once done, but I rather start from upriver and pick piece
> by piece, giving feedback upriver so future differences stay low and
> maintenance cost are not raised by every change.

The fix is a trivial change, so please include it in the next release.

Thread Previous


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