Send MinGW-Notify mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.osdn.me/mailman/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-Notify digest..."
Please do not reply to this notification; the sender address is unable to
accept incoming e-mail. If you wish to unsubscribe you can do so at
https://lists.osdn.me/mailman/listinfo/mingw-notify.
Today's Topics:
1. [SCM] mingw-org-wsl (mingw) branch, 5.2-trunk, updated.
68d05709cce24da7cfdc0177255382107953a343 (MinGW Notification List)
2. [mingw] #38607: Improved standards support for aligned memory
allocators (MinGW Notification List)
----------------------------------------------------------------------
Message: 1
Date: Fri, 21 Dec 2018 04:43:41 +0900
From: MinGW Notification List <[email protected]>
To: [email protected]
Subject: [MinGW-Notify] [SCM] mingw-org-wsl (mingw) branch, 5.2-trunk,
updated. 68d05709cce24da7cfdc0177255382107953a343
Message-ID: <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to "mingw-org-wsl" repository
containing the "mingw" project.
The branch, 5.2-trunk has been updated
via 68d05709cce24da7cfdc0177255382107953a343 (commit)
via 33a73a626f7887ac25243ae19774842bdd7fc5b5 (commit)
from 333038742884519b865e0a975a64528c8f247e31 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 68d05709cce24da7cfdc0177255382107953a343
Author: Keith Marshall <[email protected]>
Date: Thu Dec 20 19:43:18 2018 +0000
Implement test suite for aligned heap management API.
commit 33a73a626f7887ac25243ae19774842bdd7fc5b5
Author: Keith Marshall <[email protected]>
Date: Thu Dec 20 19:30:25 2018 +0000
Reimplement aligned heap management API.
-----------------------------------------------------------------------
Summary of changes:
mingwrt/ChangeLog | 40 +++
mingwrt/Makefile.in | 26 +-
mingwrt/include/malloc.h | 73 +++-
mingwrt/include/stdlib.h | 25 +-
mingwrt/mingwex/memalign.c | 640 +++++++++++++++++++++++++++++++++
mingwrt/mingwex/mingw-aligned-malloc.c | 120 -------
mingwrt/mingwex/tst-aligned-malloc.c | 90 -----
mingwrt/tests/memalign.at | 487 +++++++++++++++++++++++++
mingwrt/tests/testsuite.at.in | 1 +
9 files changed, 1271 insertions(+), 231 deletions(-)
create mode 100644 mingwrt/mingwex/memalign.c
delete mode 100644 mingwrt/mingwex/mingw-aligned-malloc.c
delete mode 100644 mingwrt/mingwex/tst-aligned-malloc.c
create mode 100644 mingwrt/tests/memalign.at
hooks/post-receive
--
mingw-org-wsl (mingw)
------------------------------
Message: 2
Date: Thu, 20 Dec 2018 20:52:36 +0000
From: MinGW Notification List <[email protected]>
To: OSDN Ticket System <[email protected]>
Subject: [MinGW-Notify] [mingw] #38607: Improved standards support for
aligned memory allocators
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8
#38607: Improved standards support for aligned memory allocators
Open Date: 2018-09-17 18:25
Last Update: 2018-12-20 20:52
URL for this Ticket:
https://osdn.net//projects/mingw/ticket/38607
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38607
---------------------------------------------------------------------
Last Changes/Comment on this Ticket:
2018-12-20 20:52 Updated by: keith
Comment:
I committed #33a73a6 and #68d0570. The former reimplements the original MinGW
aligned heap management API, correcting the identified deficiencies in the
original implementation, retaining each of the original API functions, and
adding mingw_realloc() and mingw_free() as discussed; the latter implements a
new test suite for the API, replacing the original test program, (which turned
out to be not particularly useful).
This reimplementation of the aligned heap management API will be incorporated
into the next WSL release. At this stage, I have not committed any
implementation for the proposed ISO-C11 aligned_alloc() and POSIX.1
posix_memalign() functions; I am deferring these, pending peer review, and user
demand.
---------------------------------------------------------------------
Ticket Status:
Reporter: keith
Owner: (None)
Type: Feature Request
Status: Open
Priority: 5 - Medium
MileStone: (None)
Component: WSL
Severity: 5 - Medium
Resolution: None
---------------------------------------------------------------------
Ticket details:
Microsoft introduced _aligned_malloc(), and associated functions, with
MSVCR70.DLL. Although subsequently supported in MSVCRT.DLL, from WinXP onwards,
exposure of these APIs interferes with a clean build of GCC — not only insofar
as, having detected presence of the APIs, GCC would become dependent on WinXP
and later, thus needlessly breaking legacy support, but furthermore, the GCC
sources neglect to include the requisite <malloc.h> header file, and thus do
not build cleanly.
Legacy support for similar APIs was added to MinGW, in 2003/2004, under feature
request #260; however, it may be ill-advised to make GCC dependent on these
MinGW specific APIs, for the following reasons:—
1. A patch, to incorporate them, would be unlikely to be accepted upstream.
2. If the APIs are not detected, GCC will provide its own replacement
functions.
3. A review reveals potential flaws in the MinGW implementation.
Consequently, I suggest:—
1. **Not** exposing the Microsoft APIs in libmsvcrt.a
2. Reworking the MinGW implementation, to address potential flaws.
3. Consider adding support for ISO-C11's aligned_alloc() and POSIX.1's
posix_memalign() APIs.
--
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN
Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net
URL for this Ticket:
https://osdn.net/projects/mingw/ticket/38607
RSS feed for this Ticket:
https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=38607
------------------------------
Subject: Digest Footer
_______________________________________________
MinGW-Notify mailing list
[email protected]
https://lists.osdn.me/mailman/listinfo/mingw-notify
------------------------------
End of MinGW-Notify Digest, Vol 15, Issue 6
*******************************************