Ticket #37995

Make alloca() API both GNU and Microsoft compatible

Open Date: 2018-03-04 01:12 Last Update: 2018-10-30 20:19

Reporter:
Owner:
Status:
Closed
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Accepted
File:
1
Vote
Score: 2
100.0% (2/2)
0.0% (0/2)

Details

As suggested in this mailing list discussion thread, (and this message in particular), please consider adapting the existing alloca() implementation in <malloc.h>, to make it equally accessible via a new <alloca.h> header, and so offer added conformance with the corresponding GNU implementation.

In the process, please also update the existing <malloc.h> implementation of other included APIs, to make them compatible with current Windows technologies.

Ticket History (3/4 Histories)

2018-03-04 01:12 Updated by: keith
  • New Ticket "Make alloca() API both GNU and Microsoft compatible" created
2018-03-04 03:37 Updated by: keith
  • Details Updated
Comment

I've attached a proposed implementation patch, against wsl-5.1, which should meet the objective. In the absence of significant objection, (say nett negative votes equivalent to 70% or more of mingw-users list subscribers), I will incorporate this for WSL-5.1.1

2018-10-30 20:19 Updated by: keith
  • Resolution Update from None to Accepted
  • Status Update from Open to Closed
Comment

The changes required, to implement the <alloca.h> API, are now in the git repository, and will be incorporated into the upcoming wsl-5.2 release.

The further suggested <malloc.h> changes relate, primarily, to improved (legacy) support for Microsoft's _aligned_malloc() (and complementary) API; this may be best addressed under ticket #38607.

Attachment File List

Edit

Please login to add comment to this ticket » Login