Re: [Mingw-w64-public] [Patch] Make build environment consistent
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/17/2016 10:17, David Wohlferd wrote: > > Is that the same as "approved for push?" Or am I still waiting to > hear from someone? I'm told you are the 'makefile' approver. > Yes, you can go ahead and push. -BEGIN PGP SIGNATURE- iF4EAREIAAYFAlgEmyIACgkQk721PNTrx0CbdQEAgCzgZkfKc3SrdgWr6kod8AgM 42Ban+GWE1N2SCQZqM8BAKzieEyaOHUqZQ1aRrEHAejBfnEUBTCu1GHWzxYZVm1D =6Vn6 -END PGP 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] fix uchar.h for Clang
Can some commit it? śr., 28 wrz 2016, 16:29 użytkownik JonY napisał: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 9/28/2016 18:02, Mateusz wrote: > > Looks attachment didn't work. Here is the patch: > > > >> From e98ec7a116256108831f035eb0a7f0f2fdf049e9 Mon Sep 17 00:00:00 > >> 2001 > > From: mati865 Date: Wed, 28 Sep 2016 11:45:40 > > +0200 Subject: [PATCH] fix uchar.h for Clang > > > > Clang defines itself as GCC 4.2.1 and triggers check for GCC lower > > than 4.4.0. This patch adds additional !defined(__clang__) check > > --- mingw-w64-headers/crt/uchar.h | 2 +- 1 file changed, 1 > > insertion(+), 1 deletion(-) > > > > diff --git a/mingw-w64-headers/crt/uchar.h > > b/mingw-w64-headers/crt/uchar.h index 475ad87..ab8a26d 100644 --- > > a/mingw-w64-headers/crt/uchar.h +++ > > b/mingw-w64-headers/crt/uchar.h @@ -30,7 +30,7 @@ /* Remember that > > g++ >= 4.4 defines these types only in c++0x mode */ #if > > !(defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || > > \ !defined(__GNUC__) ||\ -(__GNUC__ < 4 > > || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) +(!defined(__clang__) > > && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))) typedef > > uint_least16_t char16_t; typedef uint_least32_t char32_t; #endif > > -- 2.9.1 > > > > Patch looks OK. > > > -BEGIN PGP SIGNATURE- > > iF4EAREIAAYFAlfr01kACgkQk721PNTrx0D/oAD7BQAqa+mfswOGE5VF+tqOBGhA > fwdzqx9Ame+pT4PjC7sBAIUFQvSfIuffAkLVe6vUZVzzmae4JzzZ+CkyfUT/ZuTp > =j/Ue > -END PGP SIGNATURE- > > -- > ___ > 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] fix uchar.h for Clang
Jon_y beat me to it. :) I had modified it to fit within a reasonable line character limit with this adjustment. Author: mati865 Date: Mon Oct 17 12:08:24 2016 + fix uchar.h for Clang Clang defines itself as GCC 4.2.1 and triggers check for GCC lower than 4.4.0. This patch adds additional !defined(__clang__) check diff --git a/mingw-w64-headers/crt/uchar.h b/mingw-w64-headers/crt/uchar.h index 475ad87..a2c65ab 100644 --- a/mingw-w64-headers/crt/uchar.h +++ b/mingw-w64-headers/crt/uchar.h @@ -29,8 +29,8 @@ /* Remember that g++ >= 4.4 defines these types only in c++0x mode */ #if !(defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || \ -!defined(__GNUC__) || \ -(__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) +!defined(__GNUC__) || (!defined(__clang__) && \ +(__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))) typedef uint_least16_t char16_t; typedef uint_least32_t char32_t; #endif Regardless it is in master now. On Mon, Oct 17, 2016 at 4:24 AM, Mateusz wrote: > Can some commit it? > > śr., 28 wrz 2016, 16:29 użytkownik JonY > napisał: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > On 9/28/2016 18:02, Mateusz wrote: > > > Looks attachment didn't work. Here is the patch: > > > > > >> From e98ec7a116256108831f035eb0a7f0f2fdf049e9 Mon Sep 17 00:00:00 > > >> 2001 > > > From: mati865 Date: Wed, 28 Sep 2016 11:45:40 > > > +0200 Subject: [PATCH] fix uchar.h for Clang > > > > > > Clang defines itself as GCC 4.2.1 and triggers check for GCC lower > > > than 4.4.0. This patch adds additional !defined(__clang__) check > > > --- mingw-w64-headers/crt/uchar.h | 2 +- 1 file changed, 1 > > > insertion(+), 1 deletion(-) > > > > > > diff --git a/mingw-w64-headers/crt/uchar.h > > > b/mingw-w64-headers/crt/uchar.h index 475ad87..ab8a26d 100644 --- > > > a/mingw-w64-headers/crt/uchar.h +++ > > > b/mingw-w64-headers/crt/uchar.h @@ -30,7 +30,7 @@ /* Remember that > > > g++ >= 4.4 defines these types only in c++0x mode */ #if > > > !(defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || > > > \ !defined(__GNUC__) ||\ -(__GNUC__ < 4 > > > || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) +(!defined(__clang__) > > > && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))) typedef > > > uint_least16_t char16_t; typedef uint_least32_t char32_t; #endif > > > -- 2.9.1 > > > > > > > Patch looks OK. > > > > > > -BEGIN PGP SIGNATURE- > > > > iF4EAREIAAYFAlfr01kACgkQk721PNTrx0D/oAD7BQAqa+mfswOGE5VF+tqOBGhA > > fwdzqx9Ame+pT4PjC7sBAIUFQvSfIuffAkLVe6vUZVzzmae4JzzZ+CkyfUT/ZuTp > > =j/Ue > > -END PGP SIGNATURE- > > > > > -- > > ___ > > 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 > -- 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] Make GCC emit ASM instructions in 'gcc/except.c' for i686 MinGW targets ?
> I'd probably create a new exception handling model and conditionalize > whatever code you need based on that. That would require copy-n-paste of tons of code... All this remains contingent on Microsoft's generosity because they don't provide APIs for SEH on x86, unlike on x64. So I have to reuse stack unwinding code from SJLJ at the moment. > Emission of code for that new > exception model would likely require some amount of target specific code > called via target hooks. Hooks... Er, are you talking about those global pointer-to-functions? There are a lot, indeed. -- Best regards, lh_mouse 2016-10-17 -- 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] fix uchar.h for Clang
Thank you. 2016-10-17 14:16 GMT+02:00 Martell Malone : > Jon_y beat me to it. :) > I had modified it to fit within a reasonable line character limit with this > adjustment. > > Author: mati865 > Date: Mon Oct 17 12:08:24 2016 + > > fix uchar.h for Clang > > Clang defines itself as GCC 4.2.1 and triggers check for GCC lower than > 4.4.0. > This patch adds additional !defined(__clang__) check > > diff --git a/mingw-w64-headers/crt/uchar.h b/mingw-w64-headers/crt/uchar.h > index 475ad87..a2c65ab 100644 > --- a/mingw-w64-headers/crt/uchar.h > +++ b/mingw-w64-headers/crt/uchar.h > @@ -29,8 +29,8 @@ > > /* Remember that g++ >= 4.4 defines these types only in c++0x mode */ > #if !(defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || \ > -!defined(__GNUC__) || \ > -(__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) > +!defined(__GNUC__) || (!defined(__clang__) && \ > +(__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))) > typedef uint_least16_t char16_t; > typedef uint_least32_t char32_t; > #endif > Regardless it is in master now. > > > On Mon, Oct 17, 2016 at 4:24 AM, Mateusz wrote: > > > Can some commit it? > > > > śr., 28 wrz 2016, 16:29 użytkownik JonY > > napisał: > > > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA256 > > > > > > On 9/28/2016 18:02, Mateusz wrote: > > > > Looks attachment didn't work. Here is the patch: > > > > > > > >> From e98ec7a116256108831f035eb0a7f0f2fdf049e9 Mon Sep 17 00:00:00 > > > >> 2001 > > > > From: mati865 Date: Wed, 28 Sep 2016 11:45:40 > > > > +0200 Subject: [PATCH] fix uchar.h for Clang > > > > > > > > Clang defines itself as GCC 4.2.1 and triggers check for GCC lower > > > > than 4.4.0. This patch adds additional !defined(__clang__) check > > > > --- mingw-w64-headers/crt/uchar.h | 2 +- 1 file changed, 1 > > > > insertion(+), 1 deletion(-) > > > > > > > > diff --git a/mingw-w64-headers/crt/uchar.h > > > > b/mingw-w64-headers/crt/uchar.h index 475ad87..ab8a26d 100644 --- > > > > a/mingw-w64-headers/crt/uchar.h +++ > > > > b/mingw-w64-headers/crt/uchar.h @@ -30,7 +30,7 @@ /* Remember that > > > > g++ >= 4.4 defines these types only in c++0x mode */ #if > > > > !(defined(__cplusplus) && defined(__GXX_EXPERIMENTAL_CXX0X__)) || > > > > \ !defined(__GNUC__) ||\ -(__GNUC__ < 4 > > > > || (__GNUC__ == 4 && __GNUC_MINOR__ < 4)) +(!defined(__clang__) > > > > && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))) typedef > > > > uint_least16_t char16_t; typedef uint_least32_t char32_t; #endif > > > > -- 2.9.1 > > > > > > > > > > Patch looks OK. > > > > > > > > > -BEGIN PGP SIGNATURE- > > > > > > iF4EAREIAAYFAlfr01kACgkQk721PNTrx0D/oAD7BQAqa+mfswOGE5VF+tqOBGhA > > > fwdzqx9Ame+pT4PjC7sBAIUFQvSfIuffAkLVe6vUZVzzmae4JzzZ+CkyfUT/ZuTp > > > =j/Ue > > > -END PGP SIGNATURE- > > > > > > > > -- > > > ___ > > > 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 > > > > -- > 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
[Mingw-w64-public] Building Clang with itself and mingw-w64
Hello, I'm porting Clang 3.9 for MSYS2 ("porting" is a big word for it since most of the patches are done by Martell), right now it can build not too complicated software. When trying to compile 64bit Clang with itself it thrown this error (Clang 32 bit and GCC 6.2 32/64 bit are fine): In file included from > D:/projekty/msys2/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/projects/libcxx/src/thread.cpp:35: > In file included from > D:\projekty\msys2\clang\msys64\mingw64\x86_64-w64-mingw32\include\windows.h:114: > D:\projekty\msys2\clang\msys64\mingw64\x86_64-w64-mingw32\include\stralign.h:121:37: > error: cannot initialize return object of type 'PUWSTR_C' (aka 'wchar_t *') > with an rvalue of type 'const wchar_t *' > if(WSTR_ALIGNED(String)) return wcschr((PCWSTR)String,Character); > ^~~~ > D:\projekty\msys2\clang\msys64\mingw64\x86_64-w64-mingw32\include\stralign.h:125:37: > error: cannot initialize return object of type 'PUWSTR_C' (aka 'wchar_t *') > with an rvalue of type 'const wchar_t *' > if(WSTR_ALIGNED(String)) return wcsrchr((PCWSTR)String,Character); > ^ > I don't know if it is mingw-w64 or Clang bug so I'm asking here for some help with it. Here are our patches: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-clang https://github.com/Alexpux/MINGW-packages/pull/1833 Regards, Mateusz Mikuła -- 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] Make build environment consistent
On 10/17/2016 2:34 AM, JonY wrote: > On 10/17/2016 10:17, David Wohlferd wrote: >> Is that the same as "approved for push?" Or am I still waiting to >> hear from someone? I'm told you are the 'makefile' approver. >> > Yes, you can go ahead and push. Thank you. Pushed. dw -- 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