Skip Menu |

This queue is for tickets about the Win32-API CPAN distribution.

Report information
The Basics
Id: 81748
Status: resolved
Priority: 0/
Queue: Win32-API

People
Owner: BULKDD [...] cpan.org
Requestors: BULKDD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.74
Fixed in: 0.76_01



Subject: strawberry perl 5.8.9 with mingw.org gcc 3.4.5 alloca broken
Using strawberry perl 5.8.9 with its included mingw.org gcc 3.4.5, alloca's return value is being used as a memory block, when alloca really has a void return type. The same problem was in Cygwin, in RT 80217. For Strawberry Perl 5.8.9, "# define _alloca(size) __builtin_alloca(size)" fixed the problem just like in Cygwin. I don't know when to conditionally enable __builtin_alloca for strawberry Perls, or what version number of GCC or other macro to use as the conditional.
Fixed in 0.76_01. malloc.h is #included for the alloca define. Builds and passed on my strawberry on 5.8.9 but a different bug (can't load API.dll into the process) exists on some Perls with Mingw 3.4.5 compilers.