Re: [Mingw-w64-public] Cross-compiling with MinGW-w64

2015-08-25 Thread Spork Schivago
Ahh, that's a good point. So does that mean I shouldn't be trying to cross-compile like that? (By cross-compile, I mean on the same OS, create binaries for that os, just a different architecture. Like using the 32-bit compiler to create 64-bit exe's and vice-versa) Is the best way to do this

Re: [Mingw-w64-public] [PATCH 2/2] lib32/kernel32.def: Fix PowerSetRequest copy/paste

2015-08-25 Thread Corinna Vinschen
Hi Jacek, On Aug 25 14:52, Jacek Caban wrote: > Hi Corinna, > > The patch looks good to me, please commit. Done, thank you, Corinna > > Thanks, > Jacek > > On 08/25/15 13:35, Corinna Vinschen wrote: > > The definition of PowerSetRequest is missing in lib32/kernel32.def, > > while there's a

Re: [Mingw-w64-public] [PATCH 1/2] kernel32.def: Export PrefetchVirtualMemory on non-ARM platforms

2015-08-25 Thread Corinna Vinschen
On Aug 25 14:54, Jacek Caban wrote: > The patch looks good to me. > > Thanks, > Jacek > Commited. Thanks, Corinna pgpZ05TR9Rmqf.pgp Description: PGP signature -- ___ Mingw-

[Mingw-w64-public] [PATCH] Define VirtualMemory functions new with Windows 8.1

2015-08-25 Thread Corinna Vinschen
New functions DiscardVirtualMemory, OfferVirtualMemory, and ReclaimVirtualMemory, added with the Windows 8.1 update. Signed-off-by: Corinna Vinschen --- TODO: How to differ between 8.1 and 8.1 Update?!? mingw-w64-crt/lib32/kernel32.def | 3 +++ mingw-w64-crt/lib64/kernel32.def | 3

Re: [Mingw-w64-public] Cross-compiling with MinGW-w64

2015-08-25 Thread Ray Donnelly
On Tue, Aug 25, 2015 at 1:53 PM, Gisle Vanem wrote: > Alexandre Pereira Nunes wrote: > >> See tdm-gcc, it works like that. > > I know (that's why I love TDM-gcc). But according to my: > f:\MingW32\MingW-w64\bin\gcc.exe -v --help > > MingW-w64 could do that too: > -m32 Generate 32bit i386 c

Re: [Mingw-w64-public] Cross-compiling with MinGW-w64

2015-08-25 Thread niXman
Alexandre Pereira Nunes 2015-08-25 15:31: > See tdm-gcc, it works like that. MinGW-W64 builds[1] with SjLj exceptions is also works like that. [1] https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/downl

Re: [Mingw-w64-public] [PATCH 1/2] kernel32.def: Export PrefetchVirtualMemory on non-ARM platforms

2015-08-25 Thread Jacek Caban
The patch looks good to me. Thanks, Jacek -- ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-publ

Re: [Mingw-w64-public] [PATCH 2/2] lib32/kernel32.def: Fix PowerSetRequest copy/paste

2015-08-25 Thread Jacek Caban
Hi Corinna, The patch looks good to me, please commit. Thanks, Jacek On 08/25/15 13:35, Corinna Vinschen wrote: > The definition of PowerSetRequest is missing in lib32/kernel32.def, > while there's a PostQueuedCompletionStatus in its place. This looks > like a copy/paste bug. Fixed with this p

Re: [Mingw-w64-public] Cross-compiling with MinGW-w64

2015-08-25 Thread Gisle Vanem
Alexandre Pereira Nunes wrote: > See tdm-gcc, it works like that. I know (that's why I love TDM-gcc). But according to my: f:\MingW32\MingW-w64\bin\gcc.exe -v --help MingW-w64 could do that too: -m32 Generate 32bit i386 code -m64 Generate 64bit x86-64 code I was under the impressi

Re: [Mingw-w64-public] Cross-compiling with MinGW-w64

2015-08-25 Thread Alexandre Pereira Nunes
See tdm-gcc, it works like that. On Mon, Aug 24, 2015 at 7:05 PM, Spork Schivago wrote: > Hi. > > Is it possible to cross-compiling using pre-compiled binaries of > mingw-w64? I'm running Windows 7, 64-bit, and I'd like to be able to > install the compiler and make either 32-bit only applicati

[Mingw-w64-public] [PATCH 2/2] lib32/kernel32.def: Fix PowerSetRequest copy/paste

2015-08-25 Thread Corinna Vinschen
The definition of PowerSetRequest is missing in lib32/kernel32.def, while there's a PostQueuedCompletionStatus in its place. This looks like a copy/paste bug. Fixed with this patch. Signed-off-by: Corinna Vinschen --- mingw-w64-crt/lib32/kernel32.def | 2 +- 1 file changed, 1 insertion(+), 1 d

[Mingw-w64-public] [PATCH 2/2] lib32/kernel32.def: Fix PowerSetRequest copy/paste

2015-08-25 Thread Corinna Vinschen
The definition of PowerSetRequest is missing in lib32/kernel32.def, while there's a PostQueuedCompletionStatus in its place. This looks like a copy/paste bug. Fixed with this patch. Signed-off-by: Corinna Vinschen --- mingw-w64-crt/lib32/kernel32.def | 2 +- 1 file changed, 1 insertion(+), 1 d

[Mingw-w64-public] [PATCH 1/2] kernel32.def: Export PrefetchVirtualMemory on non-ARM platforms

2015-08-25 Thread Corinna Vinschen
PrefetchVirtualMemory was only exported on ARM32 but not on ix86 or AMD64. This patch fixes it. Signed-off-by: Corinna Vinschen --- mingw-w64-crt/lib32/kernel32.def | 1 + mingw-w64-crt/lib64/kernel32.def | 1 + 2 files changed, 2 insertions(+) diff --git a/mingw-w64-crt/lib32/kernel32.def b/m

[Mingw-w64-public] [PATCH] winnt.h: FORCELINLINE inline-only definitions

2015-08-25 Thread Corinna Vinschen
The following test application fails to build on i686 when building without optimization: $ cat foo.c #include int main () { MEMORY_BASIC_INFORMATION m; NT_TIB *tib = (NT_TIB *) NtCurrentTeb (); VirtualQuery (tib, &m, sizeof m); } $ gcc -g -O foo.c -o foo $ gcc -g foo