In perl.git, the branch tonyc/cygwin64-gnu-source has been created
<http://perl5.git.perl.org/perl.git/commitdiff/fd998cbffc88a8e50fa34259c36a8db338168383?hp=0000000000000000000000000000000000000000>
at fd998cbffc88a8e50fa34259c36a8db338168383 (commit)
- Log -----------------------------------------------------------------
commit fd998cbffc88a8e50fa34259c36a8db338168383
Author: Tony Cook <[email protected]>
Date: Fri Jul 28 15:19:46 2017 +1000
make _GNU-ish function declarations visible on cygwin
The lack of this caused several test failures on cygwin64, the one case
I tracked down involved memmem() which is a GNU extension that cygwin
supports.
Since the compiler couldn't see the memmem() prototype it treated it's
return value as int, which was then cast to (char *) preventing any
type-mismatch warning, but since int is 32-bits and (char *) on
cygwin64, the upper 32-bits of the pointer was cleared, resulting in a
crash.
After adding this a test cygwin64 build went from 30 or so test failures
to one.
-----------------------------------------------------------------------
--
Perl5 Master Repository