待辦事項 #37995

Make alloca() API both GNU and Microsoft compatible

啟用日期: 2018-03-04 01:12 最後更新: 2018-10-30 20:19

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
Accepted
檔案:
1
Vote
Score: 2
100.0% (2/2)
0.0% (0/2)

細節

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
評語

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
  • 處理結果 Update from to Accepted
  • 狀態 Update from 開啟 to 關閉
評語

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

編輯

Please login to add comment to this ticket » 登入