Vincent Torri | 31 Aug 13:41 2015
Picon

profilin app to measure startup time of an application

hey

i have

------------------------------------------------------------------------------
Corinna Vinschen | 30 Aug 21:27 2015
Picon

[PATCH] winnt.h: Add missing GetProductInfo product types

Per https://msdn.microsoft.com/en-us/library/windows/desktop/ms724358
as of 2015-08-30

Signed-off-by: Corinna Vinschen <vinschen@...>
---
 mingw-w64-headers/include/winnt.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/mingw-w64-headers/include/winnt.h b/mingw-w64-headers/include/winnt.h
index 56d663d..ef1f440 100644
--- a/mingw-w64-headers/include/winnt.h
+++ b/mingw-w64-headers/include/winnt.h
 <at>  <at>  -816,6 +816,9  <at>  <at>  inline ENUMTYPE &operator ^= (ENUMTYPE &a, ENUMTYPE b) { return (ENUMTYPE &)(((i
 #define PRODUCT_CORE                              0x65
 #define PRODUCT_PROFESSIONAL_WMC                  0x67
 #define PRODUCT_MOBILE_CORE                       0x68
+#define PRODUCT_EDUCATION                         0x79
+#define PRODUCT_EDUCATION_N                       0x7a
+#define PRODUCT_MOBILE_ENTERPRISE                 0x85

 #define PRODUCT_UNLICENSED                        0xabcdabcd

--

-- 
2.1.0

------------------------------------------------------------------------------
Martin Mitáš | 30 Aug 16:51 2015

[patch] d2d1.h: Fix macros ID2D1[.*]RenderTarget_CreateLayer()


Macro ID2D1RenderTarget_CreateLayer() defined #if D2D_USE_C_DEFINITIONS
in <d2d1.h> has wrong number of parameters. Ditto for all interfaces 
inherited from ID2D1RenderTarget.

The attached patch fixes the issue. Please review and apply.

Regards,
Martin
 mingw-w64-headers/include/d2d1.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/mingw-w64-headers/include/d2d1.h b/mingw-w64-headers/include/d2d1.h
index a86bcee..adfbc64 100644
--- a/mingw-w64-headers/include/d2d1.h
+++ b/mingw-w64-headers/include/d2d1.h
 <at>  <at>  -1037,7 +1037,7  <at>  <at>  interface ID2D1RenderTarget {
 #define ID2D1RenderTarget_CreateBitmapFromWicBitmap(this,A,B,C) (this)->lpVtbl->CreateBitmapFromWicBitmap(this,A,B,C)
 #define ID2D1RenderTarget_CreateCompatibleRenderTarget(this,A) (this)->lpVtbl->CreateCompatibleRenderTarget(this,A)
 #define ID2D1RenderTarget_CreateGradientStopCollection(this,A,B,C) (this)->lpVtbl->CreateGradientStopCollection(this,A,B,C)
-#define ID2D1RenderTarget_CreateLayer(this,A) (this)->lpVtbl->CreateLayer(this,A)
+#define ID2D1RenderTarget_CreateLayer(this,A,B) (this)->lpVtbl->CreateLayer(this,A,B)
 #define ID2D1RenderTarget_CreateLinearGradientBrush(this,A,B,C,D) (this)->lpVtbl->CreateLinearGradientBrush(this,A,B,C,D)
 #define ID2D1RenderTarget_CreateMesh(this,A) (this)->lpVtbl->CreateMesh(this,A)
 #define ID2D1RenderTarget_CreateRadialGradientBrush(this,A,B,C,D) (this)->lpVtbl->CreateRadialGradientBrush(this,A,B,C,D)
 <at>  <at>  -1329,7 +1329,7  <at>  <at>  interface ID2D1BitmapRenderTarget {
 #define ID2D1BitmapRenderTarget_CreateBitmapFromWicBitmap(this,A,B,C) (this)->lpVtbl->Base.CreateBitmapFromWicBitmap((ID2D1RenderTarget*)(this),A,B,C)
 #define ID2D1BitmapRenderTarget_CreateCompatibleBitmapRenderTarget(this,A) (this)->lpVtbl->Base.CreateCompatibleBitmapRenderTarget((ID2D1RenderTarget*)(this),A)
(Continue reading)

Nacho Man | 29 Aug 07:11 2015
Picon

libtool for MSYS 1.0

I sent a message earlier asking how to install libtool for MSYS 1.0 and Mingw-w64.   Never mind, I figured it out.   I didn't realize there wasn't a package manager and all I had to do was download the code and install various packages.   I'd like to make a suggestion though if I could.    By default, using the mingw-w64 installer from sourceforge, it wants to install MinGW in C:\Program Files\mingw-w64\... or C:\Program Files (x86)\mingw-w64\... by default.    It seems libtool, along with any source the depends on libtool or libtoolize, doesn't like spaces in pwd.   I even tried using C:\progra~1 and putting it in double quotes, escaping it, etc.   The only way I could figure out how to get libtool to compile (and work properly) is by having MinGW installed somewheres else, without spaces, like C:\SDK\MinGW-W64\...

Perhaps it might be a good idea to configure the installer to pick a different location by default or at least maybe a warning to users that having a space in the installation path can mess with things if you decide to use MSYS1 or 2...Just a thought.

Thanks!
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Nacho Man | 29 Aug 00:21 2015
Picon

Help with MSYS (32-bit).

Hi.

I hope this is the right place to post.   If not, I do apologize for bothering everyone.

I'm trying to compile a library, libserialport, using MinGW-w64 (32-bit and a 64-bit dual installation).    I have downloaded MSYS on MinGW-w64's sourceforge website (MSYS-20111123.zip)  It was located in External binary packages (Win64 hosted) / MSYS (32-bit).

I try to use it to create libserialport but it fails.   It requires some packages that aren't installed, like libtoolize (provided by libtool I believe).   Maybe some other automake type tools.   Can you please help me figure out how to get libtool installed?   I don't want to use Cygwin.   I don't know if this piece of information is important or not.   Thanks.
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
David Grayson | 28 Aug 20:09 2015
Picon

[Patch] Add infstr.h

This patch adds infstr.h and four of the macros that are supposed to be defined in it.  This is not a complete
implementation of infstr.h, but it includes the macros needed to compile devcon, a program distributed
by Microsoft.  It would be nice to get this merged in.  Thanks!

--David
diff --git a/mingw-w64-headers/include/infstr.h b/mingw-w64-headers/include/infstr.h
new file mode 100644
index 0000000..879f8a8
--- /dev/null
+++ b/mingw-w64-headers/include/infstr.h
 <at>  <at>  -0,0 +1,20  <at>  <at> 
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+#ifndef _INC_INFSTR
+#define _INC_INFSTR
+
+#include <winapifamily.h>
+
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
+
+#define INFSTR_SECT_VERSION TEXT("Version")
+#define INFSTR_KEY_PROVIDER TEXT("Provider")
+#define INFSTR_KEY_HARDWARE_CLASSGUID TEXT("ClassGUID")
+#define INFSTR_DRIVERVERSION_SECTION TEXT("DriverVer")
+
+#endif
+#endif
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
David Grayson | 28 Aug 19:48 2015
Picon

[Patch] More annotations in sal.h and driverspecs.h

Hello. The attached patch adds several simple macro definitions to sal.h and driverspecs.h.  The patch to
sal.h contains all of the macros documented on these two pages:

https://msdn.microsoft.com/en-us/library/hh916382.aspx
https://msdn.microsoft.com/en-us/library/jj159529.aspx

In addition, this patch adds some undocumented macros to sal.h and driverspecs.h that are needed to
compile usbview and devcon (two example applications destributed by Microsoft).  If someone could apply
this patch or give me feedback about how to improve them, that would be great!

--David
diff --git a/mingw-w64-headers/include/driverspecs.h b/mingw-w64-headers/include/driverspecs.h
index b7d3268..2fa89a1 100644
--- a/mingw-w64-headers/include/driverspecs.h
+++ b/mingw-w64-headers/include/driverspecs.h
 <at>  <at>  -28,3 +28,6  <at>  <at> 

 #define __deref_out_ecount(Size)

+#define __drv_aliasesMem
+#define __drv_allocatesMem(kind)
+#define __drv_freesMem(kind)
diff --git a/mingw-w64-headers/include/sal.h b/mingw-w64-headers/include/sal.h
index 79a747f..c3b15bf 100644
--- a/mingw-w64-headers/include/sal.h
+++ b/mingw-w64-headers/include/sal.h
 <at>  <at>  -17,12 +17,171  <at>  <at> 

 #define __checkReturn __inner_checkReturn

+// Pointer parameters
 #define _In_
-#define _In_opt_
 #define _Out_
 #define _Inout_
+#define _In_z_
+#define _Inout_z_
+#define _In_reads_(s)
+#define _In_reads_bytes_(s)
+#define _In_reads_z_(s)
+#define _In_reads_or_z_(s)
+#define _Out_writes_(s)
+#define _Out_writes_bytes_(s)
+#define _Out_writes_z_(s)
+#define _Inout_updates_(s)
+#define _Inout_updates_bytes_(s)
+#define _Inout_updates_z_(s)
+#define _Out_writes_to_(s,c)
+#define _Out_writes_bytes_to_(s, c)
+#define _Out_writes_all_(s)
+#define _Out_writes_bytes_all_(s)
+#define _Inout_updates_to_(s, c)
+#define _Inout_updates_bytes_to_(s, c)
+#define _Inout_updates_all_(s)
+#define _Inout_updates_bytes_all_(s)
+#define _In_reads_to_ptr_(p)
+#define _In_reads_to_ptr_z_(p)
+#define _Out_writes_to_ptr_(p)
+#define _Out_writes_to_ptr_z(p)
+
+// Optional pointer parameters
+#define _In_opt_
+#define _Out_opt_
+#define _Inout_opt_
+#define _In_opt_z_
+#define _Inout_opt_z_
+#define _In_reads_opt_(s)
+#define _In_reads_bytes_opt_(s)
+#define _In_reads_opt_z_(s)
+
+#define _Out_writes_opt_(s)
+#define _Out_writes_opt_z_(s)
+#define _Inout_updates_opt_(s)
+#define _Inout_updates_bytes_opt_(s)
+#define _Inout_updates_opt_z_(s)
+#define _Out_writes_to_opt_(s, c)
+#define _Out_writes_bytes_to_opt_(s, c)
+#define _Out_writes_all_opt_(s)
+#define _Out_writes_bytes_all_opt_(s)
+
+#define _Inout_updates_to_opt_(s, c)
+#define _Inout_updates_bytes_to_opt_(s, c)
+#define _Inout_updates_all_opt_(s, c)
+#define _Inout_updates_bytes_all_opt_(s)
+#define _In_reads_to_ptr_opt_(p)
+#define _In_reads_to_ptr_opt_z_(p)
+#define _Out_writes_to_ptr_opt_(p)
+#define _Out_writes_to_ptr_opt_z_(p)
+
+// Output pointer parameters
+#define _Outptr_
+#define _Outptr_opt_
+#define _Outptr_result_maybenull_
+#define _Outptr_opt_result_maybenull_
+#define _Outptr_result_z_
+#define _Outptr_opt_result_z_
+#define _Outptr_result_maybenull_z_
+#define _Outptr_opt_result_maybenull_z_
+#define _COM_Outptr_
+#define _COM_Outptr_opt_
+#define _COM_Outptr_result_maybenull_
+#define _COM_Outptr_opt_result_maybenull_
+#define _Outptr_result_buffer_(s)
+#define _Outptr_result_bytebuffer_(s)
+#define _Outptr_opt_result_buffer_(s)
+#define _Outptr_opt_result_bytebuffer_(s)
+#define _Outptr_result_buffer_to_(s, c)
+#define _Outptr_result_bytebuffer_to_(s, c)
+#define _Outptr_opt_result_buffer_to_(s, c)
+#define _Outptr_opt_result_bytebuffer_to_(s, c)
+#define _Result_nullonfailure_
+#define _Result_zeroonfailure_
+#define _Outptr_result_nullonfailure_
+#define _Outptr_opt_result_nullonfailure_
+#define _Outref_result_nullonfailure_
+
+// Output reference parameters
+#define _Outref_
+#define _Outref_result_maybenull_
+#define _Outref_result_buffer_(s)
+#define _Outref_result_bytebuffer_(s)
+#define _Outref_result_buffer_to_(s, c)
+#define _Outref_result_bytebuffer_to_(s, c)
+#define _Outref_result_buffer_all_(s)
+#define _Outref_result_bytebuffer_all_(s)
+#define _Outref_result_buffer_maybenull_(s)
+#define _Outref_result_bytebuffer_maybenull_(s)
+#define _Outref_result_buffer_to_maybenull_(s, c)
+#define _Outref_result_bytebuffer_to_maybenull_(s, c)
+#define _Outref_result_buffer_all_maybenull_(s)
+#define _Outref_result_bytebuffer_all_maybenull_(s)

+// Return values
+#define _Ret_z_
+#define _Ret_writes_(s)
+#define _Ret_writes_bytes_(s)
+#define _Ret_writes_z_(s)
+#define _Ret_writes_bytes_to_(s, c)
+#define _Ret_writes_maybenull_(s)
+#define _Ret_writes_to_maybenull_(s, c)
+#define _Ret_writes_maybenull_z_(s)
+#define _Ret_maybenull_
+#define _Ret_maybenull_z_
+#define _Ret_null_
+#define _Ret_notnull_
+#define _Ret_writes_bytes_to_(s, c)
+#define _Ret_writes_bytes_maybenull_(s)
+#define _Ret_writes_bytes_to_maybenull_(s, c)
+
+// Other common annotations
+#define _In_range_(low, hi)
+#define _Out_range_(low, hi)
+#define _Ret_range_(low, hi)
+#define _Deref_in_range_(low, hi)
+#define _Deref_out_range_(low, hi)
+#define _Deref_inout_range_(low, hi)
+#define _Field_range_(low, hi)
+#define _Pre_equal_to_(expr)
+#define _Post_equal_to_(expr)
 #define _Struct_size_bytes_(size)

+// Function annotations
+#define _Called_from_function_class_(name)
+#define _Check_return_ __checkReturn
+#define _Function_class_(name)
+#define _Raises_SEH_exception_
+#define _Maybe_raises_SEH_exception_
+#define _Must_inspect_result_
+#define _Use_decl_annotations_
+
+// Success/failure annotations
+#define _Always_(anno_list)
+#define _On_failure_(anno_list)
+#define _Return_type_success_(expr)
+#define _Success_(expr)
+
+#define _Reserved_
+#define _Const_
+
+// Buffer properties
+#define _Readable_bytes_(s)
+#define _Readable_elements_(s)
+#define _Writable_bytes_(s)
+#define _Writable_elements_(s)
+#define _Null_terminated_
+#define _NullNull_terminated_
+#define _Pre_readable_size_(s)
+#define _Pre_writable_size_(s)
+#define _Pre_readable_byte_size_(s)
+#define _Pre_writable_byte_size_(s)
+#define _Post_readable_size_(s)
+#define _Post_writable_size_(s)
+#define _Post_readable_byte_size_(s)
+#define _Post_writable_byte_size_(s)
+
+#define _Analysis_assume_(expr)
+
 #endif

------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
David Grayson | 28 Aug 16:49 2015
Picon

[Patch] Fix CHAR_MIN and CHAR_MAX

Could someone apply this patch?  Right now, CHAR_MIN and CHAR_MAX will be incorrect if gcc is invoked with
the -funsigned-char option.  This patch fixes it to comply with section 5.2.4.2.1.2 of C11 (N1570), which says:

> If the value of an object of type char is treated as a signed integer
> when used in an expression, [...cut...].
> Otherwise, the value of CHAR_MIN shall be 0 and the value of CHAR_MAX
> shall be the same as that of UCHAR_MAX.

I don't actually use -funsigned-char, but I imagine there is legacy code out there that uses it, and would be
compiled incorrectly without this patch.

We discussed this same patch on August 3.  Jacek Caban said:

> I'm not sure about this, but it probably makes sense. IMO it would be
>nice to have it in a separated commit and commented by Kai.

Thanks!

--David Grayson
diff --git a/mingw-w64-headers/crt/limits.h b/mingw-w64-headers/crt/limits.h
index 73dca2a..f0145df 100644
--- a/mingw-w64-headers/crt/limits.h
+++ b/mingw-w64-headers/crt/limits.h
 <at>  <at>  -24,8 +24,13  <at>  <at> 
 #define SCHAR_MAX 127
 #define UCHAR_MAX 0xff

+#ifdef __CHAR_UNSIGNED__
+#define CHAR_MIN 0
+#define CHAR_MAX UCHAR_MAX
+#else
 #define CHAR_MIN SCHAR_MIN
 #define CHAR_MAX SCHAR_MAX
+#endif

 #define MB_LEN_MAX 5
 #define SHRT_MIN (-32768)
------------------------------------------------------------------------------
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@...
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Roger Pack | 26 Aug 22:29 2015
Picon

gdb after cross compiling doesn't seem to work

Hello.
I've been having a struggle getting something that was cross compiled
to be "debuggable" using native gdb on windows.

details: http://stackoverflow.com/a/32233750/32453

Question 1: this is expected to "just work" is that right?  Typically
I should be able to cross compile something with "-g" and then copy it
to a windows box and use "gdb.exe" on it and it should work?

Does anybody know why I might be getting:

(gdb) break main
...
(gdb) r
...
Cannot insert breakpoint 1.
Cannot access memory at address 0x42445c
<process basically hangs>

very consistently? Even with native gcc 4.9.x I was getting this behavior.
Thank you!
-roger-

------------------------------------------------------------------------------
Kai Tietz | 26 Aug 20:49 2015

Re: tuner.h updates

Hello Roger,

please Post patch to this ML, as this header isn't autogenerated by
widl for us.  Of course making out of it an .idl file and autogenerate
it would be even more welcome.

Kai

2015-08-26 20:35 GMT+02:00 Roger Pack <rogerdpack2@...>:
> I have some fixes and/or updates for tuner.h should I submit them here
> or to wine, any thoughts there?
> Thanks!
> -roger-
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@...
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

------------------------------------------------------------------------------
Roger Pack | 26 Aug 20:35 2015
Picon

tuner.h updates

I have some fixes and/or updates for tuner.h should I submit them here
or to wine, any thoughts there?
Thanks!
-roger-

------------------------------------------------------------------------------

Gmane