Re: [Mingw-w64-public] [PATCH] Regenerate dwmapi.def for x86 and x86_64
On 12/22/2017 01:05 PM, JonY wrote: > Attached patch OK? > Oops, I missed the OK message, here's a rebased version, patch OK? From a530d5a514b90fa2e5144b8c37a2039701dc4d5d Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10wa...@gmail.com> Date: Sun, 21 Jan 2018 23:03:29 + Subject: [PATCH] [PATCH] dwmapi.def: Regenegerate from Windows 10 Remove ordinals from x86 library too. Signed-off-by: Jonathan Yong <10wa...@gmail.com> --- mingw-w64-crt/lib-common/dwmapi.def | 5 + mingw-w64-crt/lib32/dwmapi.def | 44 + 2 files changed, 20 insertions(+), 29 deletions(-) diff --git a/mingw-w64-crt/lib-common/dwmapi.def b/mingw-w64-crt/lib-common/dwmapi.def index 5a91d7bd..6575c849 100644 --- a/mingw-w64-crt/lib-common/dwmapi.def +++ b/mingw-w64-crt/lib-common/dwmapi.def @@ -16,13 +16,18 @@ DwmEnableMMCSS DwmExtendFrameIntoClientArea DwmFlush DwmGetColorizationColor +DwmpDxBindSwapChain +DwmpDxUnbindSwapChain DwmpDxgiIsThreadDesktopComposited DwmGetCompositionTimingInfo DwmGetGraphicsStreamClient +DwmpDxUpdateWindowRedirectionBltSurface DwmpRenderFlick DwmpAllocateSecurityDescriptor DwmpFreeSecurityDescriptor +DwmpEnableDDASupport DwmGetGraphicsStreamTransformHint +DwmTetherTextContact DwmGetTransportAttributes DwmGetWindowAttribute DwmInvalidateIconicBitmaps diff --git a/mingw-w64-crt/lib32/dwmapi.def b/mingw-w64-crt/lib32/dwmapi.def index 798116fb..96009459 100644 --- a/mingw-w64-crt/lib32/dwmapi.def +++ b/mingw-w64-crt/lib32/dwmapi.def @@ -5,47 +5,29 @@ ; LIBRARY "dwmapi.dll" EXPORTS -;ord_100@32 @100 -;ord_101@24 @101 +DwmpDxGetWindowSharedSurface@32 +DwmpDxUpdateWindowSharedSurface@24 DwmEnableComposition@4 -;ord_103@0 @103 -;ord_104@12 @104 -;ord_105@0 @105 -;ord_106@8 @106 -;ord_107@4 @107 -;ord_108@4 @108 -;ord_109@8 @109 -;ord_110@0 @110 DwmAttachMilContent@4 -;ord_112@4 @112 -;ord_113@16 @113 -;ord_114@8 @114 -;ord_115@4 @115 DwmDefWindowProc@20 DwmDetachMilContent@4 -;ord_118@8 @118 -;ord_119@8 @119 -;ord_120@8 @120 -;ord_121@8 @121 DwmEnableBlurBehindWindow@8 DwmEnableMMCSS@4 -;ord_124@20 @124 -;ord_125@12 @125 -;ord_126@8 @126 -;ord_127@4 @127 -;ord_128@4 @128 -;ord_129@4 @129 -;ord_130@0 @130 -;ord_131@8 @131 -;ord_132@8 @132 -;ord_133@36 @133 -;ord_134@8 @134 DwmExtendFrameIntoClientArea@8 DwmFlush@0 DwmGetColorizationColor@8 +DwmpDxBindSwapChain@12 +DwmpDxUnbindSwapChain@8 +DwmpDxgiIsThreadDesktopComposited@4 DwmGetCompositionTimingInfo@8 DwmGetGraphicsStreamClient@8 +DwmpDxUpdateWindowRedirectionBltSurface@36 +DwmpRenderFlick@12 +DwmpAllocateSecurityDescriptor@8 +DwmpFreeSecurityDescriptor@4 +DwmpEnableDDASupport@0 DwmGetGraphicsStreamTransformHint@8 +DwmTetherTextContact@20 DwmGetTransportAttributes@12 DwmGetWindowAttribute@16 DwmInvalidateIconicBitmaps@4 @@ -53,10 +35,14 @@ DwmIsCompositionEnabled@4 DwmModifyPreviousDxFrameDuration@12 DwmQueryThumbnailSourceSize@8 DwmRegisterThumbnail@12 +DwmRenderGesture@16 DwmSetDxFrameDuration@8 DwmSetIconicLivePreviewBitmap@16 DwmSetIconicThumbnail@12 DwmSetPresentParameters@8 DwmSetWindowAttribute@16 +DwmShowContact@8 +DwmTetherContact@16 +DwmTransitionOwnedWindow@8 DwmUnregisterThumbnail@4 DwmUpdateThumbnailProperties@8 -- 2.13.6 signature.asc Description: OpenPGP digital signature -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ 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] stdio.h: Don't use ms_* and gnu_* format attributes on clang.
Patch is ok. But this is indeed problematic that clang doesn't support different scanf/printf warning API. For C99 printf/canf formatter diagnostic the produced warnings will be wrong for this compiler. Thanks Kai 2018-01-21 12:15 GMT+01:00 Martin Storsjö : > On Sun, 21 Jan 2018, Jacek Caban wrote: > >> clang doesn't support it, so it emits tons of warnings. >> >> Signed-off-by: Jacek Caban >> --- >> mingw-w64-headers/crt/stdio.h | 21 + >> 1 file changed, 13 insertions(+), 8 deletions(-) > > > LGTM > > // Martin > > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > ___ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ 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] stdio.h: Don't use ms_* and gnu_* format attributes on clang.
On Sun, 21 Jan 2018, Jacek Caban wrote: clang doesn't support it, so it emits tons of warnings. Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/stdio.h | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) LGTM // Martin -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] [PATCH] stdio.h: Don't use ms_* and gnu_* format attributes on clang.
clang doesn't support it, so it emits tons of warnings. Signed-off-by: Jacek Caban --- mingw-w64-headers/crt/stdio.h | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index c0243ec1..357549f1 100644 --- a/mingw-w64-headers/crt/stdio.h +++ b/mingw-w64-headers/crt/stdio.h @@ -217,15 +217,24 @@ extern int __cdecl __stdio_common_vfscanf(unsigned __int64 options, FILE *file, const char *format, _locale_t locale, va_list valist); #endif +#undef __MINGW_PRINTF_FORMAT +#undef __MINGW_SCANF_FORMAT + +#if defined(__clang__) +#define __MINGW_PRINTF_FORMAT printf +#define __MINGW_SCANF_FORMAT scanf +#elif defined(__USE_MINGW_ANSI_STDIO) +#define __MINGW_PRINTF_FORMAT gnu_printf +#define __MINGW_SCANF_FORMAT gnu_scanf +#else +#define __MINGW_PRINTF_FORMAT ms_printf +#define __MINGW_SCANF_FORMAT ms_scanf +#endif #if __USE_MINGW_ANSI_STDIO /* * User has expressed a preference for C99 conformance... */ -#undef __MINGW_PRINTF_FORMAT -#undef __MINGW_SCANF_FORMAT -#define __MINGW_PRINTF_FORMAT gnu_printf -#define __MINGW_SCANF_FORMAT gnu_scanf #ifdef _GNU_SOURCE __mingw_ovr @@ -404,10 +413,6 @@ int vsnprintf (char *__stream, size_t __n, const char *__format, __builtin_va_li #else /* !__USE_MINGW_ANSI_STDIO */ -#undef __MINGW_PRINTF_FORMAT -#undef __MINGW_SCANF_FORMAT -#define __MINGW_PRINTF_FORMAT ms_printf -#define __MINGW_SCANF_FORMAT ms_scanf #undef __builtin_vsnprintf #undef __builtin_vsprintf -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] About [PATCH] intrin-impl.h: Use volatile argument for __buildbittesti-based functions.
Hi, On 1/20/18 8:54 PM, Mateusz wrote: Hello, The patch "intrin-impl.h: Use volatile argument for __buildbittesti-based functions." is not working well for me (I can't compile GCC with this patch). The problem is with one extra 'volatile': @@ -615,28 +614,28 @@ __buildstos(__stosq, unsigned __int64, "q|q") #endif /* __INTRINSIC_PROLOG */ #if __INTRINSIC_PROLOG(_interlockedbittestandset64) -__MINGW_EXTENSION unsigned char _interlockedbittestandset64(__int64 *a, __int64 b); +__MINGW_EXTENSION unsigned char _interlockedbittestandset64(__int64 volatile *a, __int64 b); #if !__has_builtin(_interlockedbittestandset64) __INTRINSICS_USEINLINE -__buildbittesti(_interlockedbittestandset64, __int64, "lock bts{q %[Offset],%[Base] | %[Base],%[Offset]}" __FLAGSET, "J", __int64) +__buildbittesti(_interlockedbittestandset64, __int64 volatile, "lock bts{q %[Offset],%[Base] | %[Base],%[Offset]}" __FLAGSET, "J") in the last line in the second param '__int64 volatile' could/should be without volatile (which is always added by __buildbittesti macro). Apart from that the patch is OK for me. Good catch, thanks! I pushed a fixed version. Cheers, Jacek -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public