Tíquete #37995

Make alloca() API both GNU and Microsoft compatible

: 2018-03-04 01:12 Última Atualização: 2018-10-30 20:19

Relator:
Dono:
Estado:
Fechado
Componente:
Marcos:
(Nenhum)
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Accepted
Arquivo:
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
Comentário

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
  • Resolução Update from Nenhum to Accepted
  • Estado Update from Aberto to Fechado
Comentário

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

Editar

Please login to add comment to this ticket » Login