Re: [Mingw-w64-public] --enable-experimental breaks as

2019-01-25 Thread Mateusz
W dniu 21.01.2019 o 21:20, Christer Solskogen pisze:
> I've successfully built a multilib compiler on linux targeting both 
> x86_64-w64-mingw32 and i686-w64-mingw32. Using that compiler to compile a 
> native Windows compiler (what do you really call that? Crossed compiler? 
> Hosted?) with mingw-w64-crt configured with "--enable-experimental" I get 
> this (on Windows).

Could you post your mingw-w64-crt configure options to reproduce the problem 
(did you use --enable-experimental all or --enable-experimental printf128)?

Regards
Mateusz



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] --enable-experimental breaks as

2019-01-25 Thread Christer Solskogen

On 25.01.2019 10:43, Mateusz wrote:

W dniu 21.01.2019 o 21:20, Christer Solskogen pisze:

I've successfully built a multilib compiler on linux targeting both x86_64-w64-mingw32 
and i686-w64-mingw32. Using that compiler to compile a native Windows compiler (what do 
you really call that? Crossed compiler? Hosted?) with mingw-w64-crt configured with 
"--enable-experimental" I get this (on Windows).


Could you post your mingw-w64-crt configure options to reproduce the problem 
(did you use --enable-experimental all or --enable-experimental printf128)?



"--enable-experimental --enable-wildcard"
Which enables all of the experimental options, I guess.


--
chs



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [v2 PATCH] headers: Make dwrite_1.h C friendly.

2019-01-25 Thread Nikolay Sivov
v2: added separate definition for C
From 8252ec9bb36419722fc810af8c53a7f40e4dd208 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov 
Date: Fri, 25 Jan 2019 01:25:19 +0300
Subject: [PATCH] headers: Make dwrite_1.h C friendly.

Signed-off-by: Nikolay Sivov 
---
 mingw-w64-headers/include/dwrite_1.h | 32 +++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-headers/include/dwrite_1.h 
b/mingw-w64-headers/include/dwrite_1.h
index 87fbdffc..bf71c5ca 100644
--- a/mingw-w64-headers/include/dwrite_1.h
+++ b/mingw-w64-headers/include/dwrite_1.h
@@ -58,7 +58,36 @@ struct DWRITE_UNICODE_RANGE {
 UINT32 last;
 };
 
-struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS {
+#ifdef __cplusplus
+struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS
+{
+INT16 glyphBoxLeft;
+INT16 glyphBoxTop;
+INT16 glyphBoxRight;
+INT16 glyphBoxBottom;
+INT16 subscriptPositionX;
+INT16 subscriptPositionY;
+INT16 subscriptSizeX;
+INT16 subscriptSizeY;
+INT16 superscriptPositionX;
+INT16 superscriptPositionY;
+INT16 superscriptSizeX;
+INT16 superscriptSizeY;
+BOOL hasTypographicMetrics;
+};
+#else
+struct DWRITE_FONT_METRICS1
+{
+UINT16 designUnitsPerEm;
+UINT16 ascent;
+UINT16 descent;
+INT16 lineGap;
+UINT16 capHeight;
+UINT16 xHeight;
+INT16 underlinePosition;
+UINT16 underlineThickness;
+INT16 strikethroughPosition;
+UINT16 strikethroughThickness;
 INT16 glyphBoxLeft;
 INT16 glyphBoxTop;
 INT16 glyphBoxRight;
@@ -73,6 +102,7 @@ struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS {
 INT16 superscriptSizeY;
 BOOL hasTypographicMetrics;
 };
+#endif
 
 struct DWRITE_SCRIPT_PROPERTIES
 {
-- 
2.20.1

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [v2 PATCH] headers: Make dwrite_1.h C friendly.

2019-01-25 Thread JonY via Mingw-w64-public
On 1/25/19 12:27 PM, Nikolay Sivov wrote:
> v2: added separate definition for C
> 

No need to repeat the members, you should be able to do something like:

struct DWRITE_FONT_METRICS1
#ifdef __cplusplus
  : public DWRITE_FONT_METRICS
#endif
{
#ifndef __cplusplus
UINT16 designUnitsPerEm;
UINT16 ascent;
UINT16 descent;
INT16 lineGap;
UINT16 capHeight;
UINT16 xHeight;
INT16 underlinePosition;
UINT16 underlineThickness;
INT16 strikethroughPosition;
UINT16 strikethroughThickness;
#endif
INT16 glyphBoxLeft;
INT16 glyphBoxTop;
INT16 glyphBoxRight;
INT16 glyphBoxBottom;
INT16 subscriptPositionX;
INT16 subscriptPositionY;
INT16 subscriptSizeX;
INT16 subscriptSizeY;
INT16 superscriptPositionX;
INT16 superscriptPositionY;
INT16 superscriptSizeX;
INT16 superscriptSizeY;
WINBOOL hasTypographicMetrics;
};


signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [v2 PATCH] headers: Make dwrite_1.h C friendly.

2019-01-25 Thread Liu Hao
在 2019/1/25 20:52, JonY via Mingw-w64-public 写道:
> On 1/25/19 12:27 PM, Nikolay Sivov wrote:
>> v2: added separate definition for C
>>
> 
> No need to repeat the members, you should be able to do something like:
> 
> struct DWRITE_FONT_METRICS1
> #ifdef __cplusplus
>   : public DWRITE_FONT_METRICS
> #endif
> {
> #ifndef __cplusplus
> UINT16 designUnitsPerEm;
> UINT16 ascent;
> UINT16 descent;
> INT16 lineGap;
> UINT16 capHeight;
> UINT16 xHeight;
> INT16 underlinePosition;
> UINT16 underlineThickness;
> INT16 strikethroughPosition;
> UINT16 strikethroughThickness;
> #endif
> INT16 glyphBoxLeft;
> INT16 glyphBoxTop;
> INT16 glyphBoxRight;

This should be the more appropriate solution, because inheritance
provides not only those members, but also implicit conversion from
`DWRITE_FONT_METRICS1 *` to `DWRITE_FONT_METRICS *`, as well as the
ability to `static_cast` from the latter to the former, which is
otherwise impossible without `reinterpret_cast`.


-- 
Best regards,
LH_Mouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [v2 PATCH] headers: Make dwrite_1.h C friendly.

2019-01-25 Thread Nikolay Sivov
Alright, thanks.

On Fri, Jan 25, 2019 at 3:53 PM JonY via Mingw-w64-public <
mingw-w64-public@lists.sourceforge.net> wrote:

> On 1/25/19 12:27 PM, Nikolay Sivov wrote:
> > v2: added separate definition for C
> >
>
> No need to repeat the members, you should be able to do something like:
>
> struct DWRITE_FONT_METRICS1
> #ifdef __cplusplus
>   : public DWRITE_FONT_METRICS
> #endif
> {
> #ifndef __cplusplus
> UINT16 designUnitsPerEm;
> UINT16 ascent;
> UINT16 descent;
> INT16 lineGap;
> UINT16 capHeight;
> UINT16 xHeight;
> INT16 underlinePosition;
> UINT16 underlineThickness;
> INT16 strikethroughPosition;
> UINT16 strikethroughThickness;
> #endif
> INT16 glyphBoxLeft;
> INT16 glyphBoxTop;
> INT16 glyphBoxRight;
> INT16 glyphBoxBottom;
> INT16 subscriptPositionX;
> INT16 subscriptPositionY;
> INT16 subscriptSizeX;
> INT16 subscriptSizeY;
> INT16 superscriptPositionX;
> INT16 superscriptPositionY;
> INT16 superscriptSizeX;
> INT16 superscriptSizeY;
> WINBOOL hasTypographicMetrics;
> };
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [v3 PATCH] headers: Make dwrite_1.h C friendly.

2019-01-25 Thread Nikolay Sivov
---
From 8096ec452013f96a48b08d886e8abb547e5f413f Mon Sep 17 00:00:00 2001
From: Nikolay Sivov 
Date: Fri, 25 Jan 2019 01:25:19 +0300
Subject: [PATCH] headers: Make dwrite_1.h C friendly.

Signed-off-by: Nikolay Sivov 
---
 mingw-w64-headers/include/dwrite_1.h | 20 ++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/include/dwrite_1.h 
b/mingw-w64-headers/include/dwrite_1.h
index 87fbdffc..52de1fc7 100644
--- a/mingw-w64-headers/include/dwrite_1.h
+++ b/mingw-w64-headers/include/dwrite_1.h
@@ -58,7 +58,23 @@ struct DWRITE_UNICODE_RANGE {
 UINT32 last;
 };
 
-struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS {
+struct DWRITE_FONT_METRICS1
+#ifdef __cplusplus
+: public DWRITE_FONT_METRICS
+#endif
+{
+#ifndef __cplusplus
+UINT16 designUnitsPerEm;
+UINT16 ascent;
+UINT16 descent;
+INT16 lineGap;
+UINT16 capHeight;
+UINT16 xHeight;
+INT16 underlinePosition;
+UINT16 underlineThickness;
+INT16 strikethroughPosition;
+UINT16 strikethroughThickness;
+#endif
 INT16 glyphBoxLeft;
 INT16 glyphBoxTop;
 INT16 glyphBoxRight;
@@ -71,7 +87,7 @@ struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS {
 INT16 superscriptPositionY;
 INT16 superscriptSizeX;
 INT16 superscriptSizeY;
-BOOL hasTypographicMetrics;
+WINBOOL hasTypographicMetrics;
 };
 
 struct DWRITE_SCRIPT_PROPERTIES
-- 
2.20.1

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Biswapriyo Nath
[PATCH] crt/lib-common: Add more kernel32 exported functions
From 50289418f4f78c5513ca7b1b5b4efe9c8dff31dd Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath 
Date: Fri, 25 Jan 2019 00:22:41 +0530
Subject: [PATCH] crt/lib-common: Add more kernel32 exported functions

Signed-off-by: Biswapriyo Nath 
---
 mingw-w64-crt/lib-common/kernel32.def.in | 67 +++-
 1 file changed, 65 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-crt/lib-common/kernel32.def.in b/mingw-w64-crt/lib-common/kernel32.def.in
index 5a0c5d98..2bc9302c 100644
--- a/mingw-w64-crt/lib-common/kernel32.def.in
+++ b/mingw-w64-crt/lib-common/kernel32.def.in
@@ -26,6 +26,14 @@ AdjustCalendarDate
 AllocConsole
 AllocateUserPhysicalPages
 AllocateUserPhysicalPagesNuma
+AppPolicyGetClrCompat
+AppPolicyGetCreateFileAccess
+AppPolicyGetLifecycleManagement
+AppPolicyGetMediaFoundationCodecLoading
+AppPolicyGetProcessTerminationMethod
+AppPolicyGetShowDeveloperDiagnostic
+AppPolicyGetThreadInitializationType
+AppPolicyGetWindowingModel
 AppXGetOSMaxVersionTested
 ApplicationRecoveryFinished
 ApplicationRecoveryInProgress
@@ -88,12 +96,14 @@ BasepFreeAppCompatData
 BasepGetAppCompatData
 BasepGetComputerNameFromNtPath
 BasepGetExeArchType
+BasepInitAppCompatData
 BasepIsProcessAllowed
 BasepMapModuleHandle
 BasepNotifyLoadStringResource
 BasepPostSuccessAppXExtension
 BasepProcessInvalidImage
 BasepQueryAppCompat
+BasepQueryModuleChpeSettings
 BasepReleaseAppXContext
 BasepReleaseSxsCreateProcessUtilityStruct
 BasepReportFault
@@ -136,6 +146,7 @@ CloseHandle
 ClosePackageInfo
 ClosePrivateNamespace
 CloseProfileUserMapping
+ClosePseudoConsole
 CloseState
 CloseThreadpool
 CloseThreadpoolCleanupGroup
@@ -186,6 +197,7 @@ CreateDirectoryExW
 CreateDirectoryTransactedA
 CreateDirectoryTransactedW
 CreateDirectoryW
+CreateEnclave
 CreateEventA
 CreateEventExA
 CreateEventExW
@@ -224,10 +236,12 @@ CreatePipe
 CreatePrivateNamespaceA
 CreatePrivateNamespaceW
 CreateProcessA
+CreateProcessAsUserA
 CreateProcessAsUserW
 CreateProcessInternalA
 CreateProcessInternalW
 CreateProcessW
+CreatePseudoConsole
 CreateRemoteThread
 CreateRemoteThreadEx
 CreateSemaphoreA
@@ -337,6 +351,7 @@ EnumSystemCodePagesA
 EnumSystemCodePagesW
 EnumSystemFirmwareTables
 EnumSystemGeoID
+EnumSystemGeoNames
 EnumSystemLanguageGroupsA
 EnumSystemLanguageGroupsW
 EnumSystemLocalesA
@@ -432,6 +447,7 @@ FreeEnvironmentStringsW
 FreeLibrary
 FreeLibraryAndExitThread
 FreeLibraryWhenCallbackReturns
+FreeMemoryJobObject
 FreeResource
 FreeUserPhysicalPages
 GenerateConsoleCtrlEvent
@@ -558,6 +574,8 @@ GetDiskFreeSpaceA
 GetDiskFreeSpaceExA
 GetDiskFreeSpaceExW
 GetDiskFreeSpaceW
+GetDiskSpaceInformationA
+GetDiskSpaceInformationW
 GetDllDirectoryA
 GetDllDirectoryW
 GetDriveTypeA
@@ -566,6 +584,7 @@ GetDurationFormat
 GetDurationFormatEx
 GetDynamicTimeZoneInformation
 GetEnabledExtendedFeatures
+GetEnabledXStateFeatures
 GetEncryptedFileVersionExt
 GetEnvironmentStrings
 GetEnvironmentStringsA
@@ -608,6 +627,7 @@ GetFullPathNameTransactedW
 GetFullPathNameW
 GetGeoInfoA
 GetGeoInfoW
+GetGeoInfoEx
 GetHandleInformation
 GetLargePageMinimum
 GetLargestConsoleWindowSize
@@ -693,6 +713,7 @@ GetPrivateProfileStructA
 GetPrivateProfileStructW
 GetProcAddress
 GetProcessAffinityMask
+GetProcessDefaultCpuSets
 GetProcessDEPPolicy
 GetProcessGroupAffinity
 GetProcessHandleCount
@@ -733,6 +754,7 @@ GetStringTypeExA
 GetStringTypeExW
 GetStringTypeW
 GetSystemAppDataKey
+GetSystemCpuSetInformation
 GetSystemDEPPolicy
 GetSystemDefaultLCID
 GetSystemDefaultLangID
@@ -763,6 +785,7 @@ GetTempFileNameW
 GetTempPathA
 GetTempPathW
 GetThreadContext
+GetThreadDescription
 GetThreadErrorMode
 GetThreadGroupAffinity
 GetThreadIOPendingFlag
@@ -773,6 +796,7 @@ GetThreadLocale
 GetThreadPreferredUILanguages
 GetThreadPriority
 GetThreadPriorityBoost
+GetThreadSelectedCpuSets
 GetThreadSelectorEntry
 GetThreadTimes
 GetThreadUILanguage
@@ -787,6 +811,8 @@ GetTimeZoneInformation
 GetTimeZoneInformationForYear
 GetUILanguageInfo
 F_X64(GetUmsCompletionListEvent)
+GetUmsSystemThreadInformation
+GetUserDefaultGeoName
 GetUserDefaultLCID
 GetUserDefaultLangID
 GetUserDefaultLocaleName
@@ -809,6 +835,7 @@ GetVolumePathNamesForVolumeNameW
 GetWindowsDirectoryA
 GetWindowsDirectoryW
 GetWriteWatch
+GetXStateFeaturesMask
 GlobalAddAtomA
 GlobalAddAtomExA
 GlobalAddAtomExW
@@ -859,17 +886,17 @@ IdnToAscii
 IdnToNameprepUnicode
 IdnToUnicode
 InitAtomTable
-InitializeConditionVariable
-InitializeCriticalSection
 InitOnceBeginInitialize
 InitOnceComplete
 InitOnceExecuteOnce
 InitOnceInitialize
 InitializeConditionVariable
 InitializeContext
+InitializeContext2
 InitializeCriticalSection
 InitializeCriticalSectionAndSpinCount
 InitializeCriticalSectionEx
+InitializeEnclave
 InitializeExtendedContext
 InitializeProcThreadAttributeList
 InitializeSListHead
@@ -895,6 +922,7 @@ IsCalendarLeapYear
 IsDBCSLeadByte
 IsDBCSLeadByteEx
 IsDebuggerPresent
+IsEnclaveTypeSupported
 IsNLSDefinedString
 IsNativeVhdBoot

Re: [Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Martin Storsjö

Hi,

On Sat, 26 Jan 2019, Biswapriyo Nath wrote:


[PATCH] crt/lib-common: Add more kernel32 exported functions


This patch removes the InitializeConditionVariable and 
InitializeCriticalSection functions. Why?


Also, are any of the new added functions available in any of 
api-ms-win-core-*.dll that we have? It'd be nice to get them added in sync 
to them, but that's not mandatory.


// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Biswapriyo Nath
Those functions we're mentioned two times. So I remove one of them. Here
are the edited patch file with all redirected virtual dll.

On Saturday, January 26, 2019, Martin Storsjö  wrote:
> Hi,
>
> On Sat, 26 Jan 2019, Biswapriyo Nath wrote:
>
>> [PATCH] crt/lib-common: Add more kernel32 exported functions
>
> This patch removes the InitializeConditionVariable and
InitializeCriticalSection functions. Why?
>
> Also, are any of the new added functions available in any of
api-ms-win-core-*.dll that we have? It'd be nice to get them added in sync
to them, but that's not mandatory.
>
> // Martin
>
>
>
> ___
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
From a4e4e3b04f36bee4335129b5cd6c5e11bbb57a05 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath 
Date: Fri, 25 Jan 2019 01:43:30 +0530
Subject: [PATCH] crt/lib-common: Add more kernel32 exported functions

Signed-off-by: Biswapriyo Nath 
---
 .../api-ms-win-core-debug-l1-1-2.def  |  5 ++
 .../api-ms-win-core-enclave-l1-1-0.def|  8 +++
 .../api-ms-win-core-file-l1-2-3.def   |  6 ++
 .../api-ms-win-core-memory-l1-1-1.def |  8 +++
 .../api-ms-win-core-processthreads-l1-1-0.def | 12 
 .../api-ms-win-core-processthreads-l1-1-2.def |  3 +
 .../api-ms-win-core-processthreads-l1-1-3.def |  2 +
 .../api-ms-win-core-synch-l1-1-0.def  |  5 ++
 .../api-ms-win-core-timezone-l1-1-1.def   |  6 ++
 .../api-ms-win-core-wow64-l1-1-1.def  |  5 ++
 .../api-ms-win-core-wow64-l1-1-2.def  |  5 ++
 mingw-w64-crt/lib-common/kernel32.def.in  | 67 ++-
 12 files changed, 130 insertions(+), 2 deletions(-)
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-debug-l1-1-2.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-enclave-l1-1-0.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-file-l1-2-3.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-memory-l1-1-1.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-0.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-synch-l1-1-0.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-timezone-l1-1-1.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-wow64-l1-1-1.def
 create mode 100644 mingw-w64-crt/lib-common/api-ms-win-core-wow64-l1-1-2.def

diff --git a/mingw-w64-crt/lib-common/api-ms-win-core-debug-l1-1-2.def b/mingw-w64-crt/lib-common/api-ms-win-core-debug-l1-1-2.def
new file mode 100644
index ..fbf92375
--- /dev/null
+++ b/mingw-w64-crt/lib-common/api-ms-win-core-debug-l1-1-2.def
@@ -0,0 +1,5 @@
+LIBRARY api-ms-win-core-debug-l1-1-2
+
+EXPORTS
+
+WaitForDebugEventEx
diff --git a/mingw-w64-crt/lib-common/api-ms-win-core-enclave-l1-1-0.def b/mingw-w64-crt/lib-common/api-ms-win-core-enclave-l1-1-0.def
new file mode 100644
index ..df5edbe3
--- /dev/null
+++ b/mingw-w64-crt/lib-common/api-ms-win-core-enclave-l1-1-0.def
@@ -0,0 +1,8 @@
+LIBRARY api-ms-win-core-enclave-l1-1-0
+
+EXPORTS
+
+CreateEnclave
+InitializeEnclave
+IsEnclaveTypeSupported
+LoadEnclaveData
diff --git a/mingw-w64-crt/lib-common/api-ms-win-core-file-l1-2-3.def b/mingw-w64-crt/lib-common/api-ms-win-core-file-l1-2-3.def
new file mode 100644
index ..661ebc4f
--- /dev/null
+++ b/mingw-w64-crt/lib-common/api-ms-win-core-file-l1-2-3.def
@@ -0,0 +1,6 @@
+LIBRARY api-ms-win-core-file-l1-2-3
+
+EXPORTS
+
+GetDiskSpaceInformationA
+GetDiskSpaceInformationW
diff --git a/mingw-w64-crt/lib-common/api-ms-win-core-memory-l1-1-1.def b/mingw-w64-crt/lib-common/api-ms-win-core-memory-l1-1-1.def
new file mode 100644
index ..25b30573
--- /dev/null
+++ b/mingw-w64-crt/lib-common/api-ms-win-core-memory-l1-1-1.def
@@ -0,0 +1,8 @@
+LIBRARY api-ms-win-core-memory-l1-1-1
+
+EXPORTS
+
+CreateFileMappingFromApp
+MapViewOfFileFromApp
+PrefetchVirtualMemory
+UnmapViewOfFileEx
diff --git a/mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-0.def b/mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-0.def
new file mode 100644
index ..cfae650b
--- /dev/null
+++ b/mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-0.def
@@ -0,0 +1,12 @@
+LIBRARY api-ms-win-core-processthreads-l1-1-0
+
+EXPORTS
+
+CreateRemoteThreadEx
+DeleteProcThreadAttributeList
+GetCurrentThreadStackLimits
+InitializeProcThreadAttributeList
+;OpenProcessToken
+;OpenThreadToken
+SetThreadToken
+UpdateProcThreadAttribute
diff --git a/mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-2.def b/mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-2.def
index e5c0b1f8..e74a3349 100644
--- a/mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-2.def
+++ b/mingw-w64-crt/lib-common/api-ms-win-core-processthreads-l1-1-2.def
@@ -13,10 +13,13 @@ GetExitCodeThread
 GetThreadContext
 GetThreadId
 GetThreadPriority
+IsProcessCrit

Re: [Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Martin Storsjö

On Sat, 26 Jan 2019, Biswapriyo Nath wrote:


Those functions we're mentioned two times. So I remove one of them. Here
are the edited patch file with all redirected virtual dll.


Aha, ok, fair enough. It might be good to explain that in the commit 
message.


Thanks for adding def files for the redirected dlls. For them to be useful 
though, they'd need to be hooked up in the makefiles (for all 3 
architectures that use unprefixed symbols, x64, arm32 and arm64).


// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Biswapriyo Nath
Please forgive me. I'm not deeply familiar with mingw-w64 makefiles. And
those are so huge...

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Martin Storsjö

On Sat, 26 Jan 2019, Biswapriyo Nath wrote:


Please forgive me. I'm not deeply familiar with mingw-w64 makefiles. And
those are so huge...


In this case, you could just add them to lib64/Makefile.am, 
libarm32/Makefile.am and libarm64/Makefile.am - but that would make them 
installed. And the existing ones aren't installed, they're part of 
libmincore, libruntimeobject, libsynchronization and libwindowsapp. (See 
mingw-w64-crt/Makefile.am.)


Do you happen to know which one(s) they'd belong to here? Jacek, do you 
know?


After editing any Makefile.am, run "autoreconfig" in the mingw-w64-crt 
directory. Doing that changes a few files that are part of the repo, but 
don't include those changes in the commit/patch that you send to the 
mailing list, those changes are huge and pretty unreadable - whoever 
commits the changes can regenerate those changes.


// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Biswapriyo Nath
Sorry sir, I'm not familiar with how those works in mingw-w64 repo.

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt/lib-common: Add more kernel32 exported functions

2019-01-25 Thread Martin Storsjö

On Sat, 26 Jan 2019, Biswapriyo Nath wrote:


Sorry sir, I'm not familiar with how those works in mingw-w64 repo.


Ok, well thanks for the patch for adding those def files in any case.

I went ahead and applied the one that extends kernel32.def.in, and after 
figuring out where/how to add the other def files we can apply those as 
well. Thanks for your patch!


// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] --enable-experimental breaks as

2019-01-25 Thread Mateusz
W dniu 25.01.2019 o 10:48, Christer Solskogen pisze:
> On 25.01.2019 10:43, Mateusz wrote:
>> W dniu 21.01.2019 o 21:20, Christer Solskogen pisze:
>>> I've successfully built a multilib compiler on linux targeting both 
>>> x86_64-w64-mingw32 and i686-w64-mingw32. Using that compiler to compile a 
>>> native Windows compiler (what do you really call that? Crossed compiler? 
>>> Hosted?) with mingw-w64-crt configured with "--enable-experimental" I get 
>>> this (on Windows).
>>
>> Could you post your mingw-w64-crt configure options to reproduce the problem 
>> (did you use --enable-experimental all or --enable-experimental printf128)?
>>
> 
> "--enable-experimental --enable-wildcard"
> Which enables all of the experimental options, I guess.

OK, I've compiled native gcc (one 64-bit lib) with mingw-w64-crt options:
$M_SOURCE/mingw-w64-v$VER_MINGW64/mingw-w64-crt/configure \
  --host=$MINGW_TRIPLE \
  --prefix=$M_TARGET/$MINGW_TRIPLE $MINGW_LIB --enable-experimental 
--enable-wildcard

And with this native gcc (64-bit):
$ cat t.c
#define __USE_MINGW_ANSI_STDIO
#include 

int main()
{
  __int128 t = 0;
  t -= 1;
  printf("hello %I128u\n", t);
  return 0;
}
Mateusz@Mateusz-i7 /f/t/e
$ gcc -Wall -O2 -save-temps -o t.exe t.c
t.c: In function 'main':
t.c:8:10: warning: format '%u' expects argument of type 'unsigned int', but 
argument 2 has type '__int128' [-Wformat=]
   printf("hello %I128u\n", t);
  ^~~~  ~

Mateusz@Mateusz-i7 /f/t/e
$ t
hello 340282366920938463463374607431768211455

Mateusz@Mateusz-i7 /f/t/e
$ cat t.s
.file   "t.c"
.text
.section .rdata,"dr"
.LC0:
.ascii "hello %I128u\12\0"
.text
.p2align 4,,15
.defprintf.constprop.0; .scl3;  .type   32; .endef
.seh_proc   printf.constprop.0
printf.constprop.0:
pushq   %rbx
.seh_pushreg%rbx
subq$48, %rsp
.seh_stackalloc 48
.seh_endprologue
movl$1, %ecx
leaq72(%rsp), %rbx
movq%rdx, 72(%rsp)
movq%r8, 80(%rsp)
movq%r9, 88(%rsp)
movq%rbx, 40(%rsp)
call*__imp___acrt_iob_func(%rip)
movq%rbx, %r8
leaq.LC0(%rip), %rdx
movq%rax, %rcx
call__mingw_vfprintf
addq$48, %rsp
popq%rbx
ret
.seh_endproc
.def__main; .scl2;  .type   32; .endef
.section.text.startup,"x"
.p2align 4,,15
.globl  main
.defmain;   .scl2;  .type   32; .endef
.seh_proc   main
main:
subq$56, %rsp
.seh_stackalloc 56
.seh_endprologue
call__main
leaq32(%rsp), %rdx
leaq.LC0(%rip), %rcx
    movq$-1, 32(%rsp)
movq$-1, 40(%rsp)
callprintf.constprop.0
xorl%eax, %eax
addq$56, %rsp
ret
.seh_endproc
.ident  "GCC: (GNU) 8.2.1 20190125"
.def__mingw_vfprintf;   .scl2;  .type   32; .endef

For me it looks OK.

Regards
Mateusz



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [v3 PATCH] headers: Make dwrite_1.h C friendly.

2019-01-25 Thread JonY via Mingw-w64-public
On 1/25/19 2:41 PM, Nikolay Sivov wrote:
> ---

Patch looks OK, pushed to master.



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public