Re: [Mingw-w64-public] [PATCH] crt: More strictly flag functions in the unified msvcrt.def.in

2017-10-04 Thread Martin Storsjö

On Mon, 2 Oct 2017, JonY via Mingw-w64-public wrote:


On 10/02/2017 10:52 AM, Martin Storsjö wrote:

On Mon, 2 Oct 2017, JonY via Mingw-w64-public wrote:


On 10/02/2017 05:55 AM, Martin Storsjö wrote:

On Fri, 29 Sep 2017, Martin Storsjö wrote:


Now the output from the unified msvcrt.def.in should be almost
identical
to what it was before, except for some new *_dbg and __p_* functions.

The functions that were included for 32 and 64 bit x86 in the
unification
were originally believed to be harmless, but some of them turned out to
be function that we have compatibility fallbacks for, that were missed
when libmsvcrt.a suddenly started. This broke compatibility with XP
in some cases.

Signed-off-by: Martin Storsjö 
---
mingw-w64-crt/lib-common/msvcrt.def.in | 229
-
1 file changed, 114 insertions(+), 115 deletions(-)


If there's no objections, I'll be pushing this one soon, since it
basically fixes regressions caused by my def file unification.



I think the mailing list spam filtered the patch.


That's strange - it's at least visible at
https://sourceforge.net/p/mingw-w64/mailman/message/36057343/.

// Martin


2nd reworked patch OK.


Pushed.

// 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


Re: [Mingw-w64-public] [PATCH] crt: More strictly flag functions in the unified msvcrt.def.in

2017-10-03 Thread Martin Storsjö

On Mon, 2 Oct 2017, JonY via Mingw-w64-public wrote:


On 10/02/2017 10:52 AM, Martin Storsjö wrote:

On Mon, 2 Oct 2017, JonY via Mingw-w64-public wrote:


On 10/02/2017 05:55 AM, Martin Storsjö wrote:

On Fri, 29 Sep 2017, Martin Storsjö wrote:


Now the output from the unified msvcrt.def.in should be almost
identical
to what it was before, except for some new *_dbg and __p_* functions.

The functions that were included for 32 and 64 bit x86 in the
unification
were originally believed to be harmless, but some of them turned out to
be function that we have compatibility fallbacks for, that were missed
when libmsvcrt.a suddenly started. This broke compatibility with XP
in some cases.

Signed-off-by: Martin Storsjö 
---
mingw-w64-crt/lib-common/msvcrt.def.in | 229
-
1 file changed, 114 insertions(+), 115 deletions(-)


If there's no objections, I'll be pushing this one soon, since it
basically fixes regressions caused by my def file unification.



I think the mailing list spam filtered the patch.


That's strange - it's at least visible at
https://sourceforge.net/p/mingw-w64/mailman/message/36057343/.

// Martin


2nd reworked patch OK.


The one linked above that is?

// 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


Re: [Mingw-w64-public] [PATCH] crt: More strictly flag functions in the unified msvcrt.def.in

2017-10-02 Thread JonY via Mingw-w64-public
On 10/02/2017 10:52 AM, Martin Storsjö wrote:
> On Mon, 2 Oct 2017, JonY via Mingw-w64-public wrote:
> 
>> On 10/02/2017 05:55 AM, Martin Storsjö wrote:
>>> On Fri, 29 Sep 2017, Martin Storsjö wrote:
>>>
 Now the output from the unified msvcrt.def.in should be almost
 identical
 to what it was before, except for some new *_dbg and __p_* functions.

 The functions that were included for 32 and 64 bit x86 in the
 unification
 were originally believed to be harmless, but some of them turned out to
 be function that we have compatibility fallbacks for, that were missed
 when libmsvcrt.a suddenly started. This broke compatibility with XP
 in some cases.

 Signed-off-by: Martin Storsjö 
 ---
 mingw-w64-crt/lib-common/msvcrt.def.in | 229
 -
 1 file changed, 114 insertions(+), 115 deletions(-)
>>>
>>> If there's no objections, I'll be pushing this one soon, since it
>>> basically fixes regressions caused by my def file unification.
>>>
>>
>> I think the mailing list spam filtered the patch.
> 
> That's strange - it's at least visible at
> https://sourceforge.net/p/mingw-w64/mailman/message/36057343/.
> 
> // Martin

2nd reworked patch OK.


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] crt: More strictly flag functions in the unified msvcrt.def.in

2017-10-02 Thread Martin Storsjö

On Mon, 2 Oct 2017, JonY via Mingw-w64-public wrote:


On 10/02/2017 05:55 AM, Martin Storsjö wrote:

On Fri, 29 Sep 2017, Martin Storsjö wrote:


Now the output from the unified msvcrt.def.in should be almost identical
to what it was before, except for some new *_dbg and __p_* functions.

The functions that were included for 32 and 64 bit x86 in the unification
were originally believed to be harmless, but some of them turned out to
be function that we have compatibility fallbacks for, that were missed
when libmsvcrt.a suddenly started. This broke compatibility with XP
in some cases.

Signed-off-by: Martin Storsjö 
---
mingw-w64-crt/lib-common/msvcrt.def.in | 229
-
1 file changed, 114 insertions(+), 115 deletions(-)


If there's no objections, I'll be pushing this one soon, since it
basically fixes regressions caused by my def file unification.



I think the mailing list spam filtered the patch.


That's strange - it's at least visible at 
https://sourceforge.net/p/mingw-w64/mailman/message/36057343/.


// 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


Re: [Mingw-w64-public] [PATCH] crt: More strictly flag functions in the unified msvcrt.def.in

2017-10-02 Thread JonY via Mingw-w64-public
On 10/02/2017 05:55 AM, Martin Storsjö wrote:
> On Fri, 29 Sep 2017, Martin Storsjö wrote:
> 
>> Now the output from the unified msvcrt.def.in should be almost identical
>> to what it was before, except for some new *_dbg and __p_* functions.
>>
>> The functions that were included for 32 and 64 bit x86 in the unification
>> were originally believed to be harmless, but some of them turned out to
>> be function that we have compatibility fallbacks for, that were missed
>> when libmsvcrt.a suddenly started. This broke compatibility with XP
>> in some cases.
>>
>> Signed-off-by: Martin Storsjö 
>> ---
>> mingw-w64-crt/lib-common/msvcrt.def.in | 229
>> -
>> 1 file changed, 114 insertions(+), 115 deletions(-)
> 
> If there's no objections, I'll be pushing this one soon, since it
> basically fixes regressions caused by my def file unification.
> 

I think the mailing list spam filtered the patch.



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] crt: More strictly flag functions in the unified msvcrt.def.in

2017-10-01 Thread Martin Storsjö

On Fri, 29 Sep 2017, Martin Storsjö wrote:


Now the output from the unified msvcrt.def.in should be almost identical
to what it was before, except for some new *_dbg and __p_* functions.

The functions that were included for 32 and 64 bit x86 in the unification
were originally believed to be harmless, but some of them turned out to
be function that we have compatibility fallbacks for, that were missed
when libmsvcrt.a suddenly started. This broke compatibility with XP
in some cases.

Signed-off-by: Martin Storsjö 
---
mingw-w64-crt/lib-common/msvcrt.def.in | 229 -
1 file changed, 114 insertions(+), 115 deletions(-)


If there's no objections, I'll be pushing this one soon, since it 
basically fixes regressions caused by my def file unification.


// 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] crt: More strictly flag functions in the unified msvcrt.def.in

2017-09-29 Thread Martin Storsjö
Now the output from the unified msvcrt.def.in should be almost identical
to what it was before, except for some new *_dbg and __p_* functions.

The functions that were included for 32 and 64 bit x86 in the unification
were originally believed to be harmless, but some of them turned out to
be function that we have compatibility fallbacks for, that were missed
when libmsvcrt.a suddenly started. This broke compatibility with XP
in some cases.

Signed-off-by: Martin Storsjö 
---
 mingw-w64-crt/lib-common/msvcrt.def.in | 229 -
 1 file changed, 114 insertions(+), 115 deletions(-)

diff --git a/mingw-w64-crt/lib-common/msvcrt.def.in 
b/mingw-w64-crt/lib-common/msvcrt.def.in
index 2b9af5c..bbf751e 100644
--- a/mingw-w64-crt/lib-common/msvcrt.def.in
+++ b/mingw-w64-crt/lib-common/msvcrt.def.in
@@ -97,7 +97,6 @@ $I10_OUTPUT
 ; void __cdecl operator delete[](void * __ptr64)
 ; GNU = __ZdaPv
 ??_V@YAXPEAX@Z
-__uncaught_exception
 ; int (__cdecl*__cdecl _query_new_handler(void))(unsigned __int64)
 ; GNU = __Z18_query_new_handlerv
 ?_query_new_handler@@YAP6AH_K@ZXZ
@@ -186,7 +185,6 @@ __ExceptionPtrDestroy
 __ExceptionPtrRethrow
 __ExceptionPtrSwap
 __ExceptionPtrToBool
-__uncaught_exception
 ?_query_new_handler@@YAP6AHI@ZXZ
 ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z
 ?_set_new_mode@@YAHH@Z
@@ -201,6 +199,7 @@ __uncaught_exception
 ?what@exception@@UBAPBDXZ
 #endif
 
+#ifdef DEF_ARM32
 _CrtCheckMemory
 _CrtDbgBreak
 _CrtDbgReport
@@ -226,6 +225,7 @@ _CrtSetReportFile
 _CrtSetReportHook
 _CrtSetReportHook2
 _CrtSetReportMode
+#endif
 _CxxThrowException
 F_I386(_EH_prolog)
 _Getdays
@@ -233,30 +233,30 @@ _Getmonths
 _Gettnames
 _HUGE DATA
 _Strftime
-_W_Getdays
-_W_Getmonths
-_W_Gettnames
-_Wcsftime
+F_ARM_ANY(_W_Getdays)
+F_ARM_ANY(_W_Getmonths)
+F_ARM_ANY(_W_Gettnames)
+F_ARM_ANY(_Wcsftime)
 _XcptFilter
-__AdjustPointer
-__C_specific_handler
+F_ARM_ANY(__AdjustPointer)
+F_NON_I386(__C_specific_handler)
 __CppXcptFilter
-__CxxCallUnwindDtor
-__CxxCallUnwindVecDtor
-__CxxDetectRethrow
-__CxxExceptionFilter
+F_I386(__CxxCallUnwindDtor)
+F_I386(__CxxCallUnwindVecDtor)
+F_I386(__CxxDetectRethrow)
+F_I386(__CxxExceptionFilter)
 __CxxFrameHandler
-__CxxFrameHandler3
+F_ARM_ANY(__CxxFrameHandler3)
 F_I386(__CxxLongjmpUnwind)
-__CxxQueryExceptionSize
-__CxxRegisterExceptionObject
-__CxxUnregisterExceptionObject
+F_I386(__CxxQueryExceptionSize)
+F_I386(__CxxRegisterExceptionObject)
+F_I386(__CxxUnregisterExceptionObject)
 __DestructExceptionObject
 __RTCastToVoid
 __RTDynamicCast
 __RTtypeid
 __STRINGTOLD
-___lc_codepage_func
+F_NON_I386(___lc_codepage_func)
 ___lc_collate_cp_func
 ___lc_handle_func
 ___mb_cur_max_func
@@ -272,10 +272,10 @@ __crtGetLocaleInfoW
 __crtGetStringTypeW
 __crtLCMapStringA
 __crtLCMapStringW
-__daylight
+F_ARM_ANY(__daylight)
 __dllonexit
 __doserrno
-__dstbias
+F_ARM_ANY(__dstbias)
 __fpecode
 __getmainargs
 F_X86_ANY(__initenv DATA)
@@ -283,10 +283,9 @@ __iob_func
 __isascii
 __iscsym
 __iscsymf
-__lc_clike
+F_I386(__lc_clike)
 __lc_codepage DATA
 __lc_collate_cp DATA
-__jump_unwind
 __lc_handle DATA
 __lconv_init
 __mb_cur_max DATA
@@ -323,12 +322,12 @@ __pctype_func
 __pioinfo DATA
 __pwctype_func
 __pxcptinfoptrs
-__security_error_handler
+F_I386(__security_error_handler)
 __set_app_type
-__set_buffer_overrun_handler
+F_I386(__set_buffer_overrun_handler)
 __setlc_active DATA
 __setusermatherr
-__strncnt
+F_ARM_ANY(__strncnt)
 __threadhandle
 __threadid
 __toascii
@@ -338,12 +337,12 @@ __unDNameEx
 __unguarded_readlc_active DATA
 __wargv DATA
 __wcserror
-__wcserror_s
-__wcsncnt
+F_NON_I386(__wcserror_s)
+F_ARM_ANY(__wcsncnt)
 __wgetmainargs
 F_X86_ANY(__winitenv DATA)
-_abnormal_termination
-_abs64
+F_I386(_abnormal_termination)
+F_NON_I386(_abs64)
 _access
 ; _access_s Replaced by emu
 _acmdln DATA
@@ -385,7 +384,7 @@ _atoi64_l
 _atoi_l
 _atol_l
 _atoldbl
-_atoldbl_l
+F_NON_I386(_atoldbl_l)
 _beep
 _beginthread
 _beginthreadex
@@ -401,13 +400,13 @@ _cgetws
 _chdir
 _chdrive
 _chgsign
-_chgsignf
+F_NON_I386(_chgsignf)
 _chmod
-_chkesp
+F_I386(_chkesp)
 _chsize
 ; _chsize_s replaced by emu
-_chvalidator
-_chvalidator_l
+F_ARM_ANY(_chvalidator)
+F_ARM_ANY(_chvalidator_l)
 _clearfp
 _close
 _commit
@@ -416,7 +415,7 @@ _control87
 _controlfp
 ; _controlfp_s replaced by emu
 _copysign
-_copysignf
+F_NON_I386(_copysignf)
 _cprintf
 _cprintf_l
 _cprintf_p
@@ -425,21 +424,22 @@ _cprintf_p_l
 ; _cprintf_s_l likewise.
 _cputs
 _cputws
-_CRT_RTC_INIT
+F_I386(_CRT_RTC_INIT)
 _creat
 _create_locale
-_crtAssertBusy
-_crtBreakAlloc
-_crtDbgFlag
+F_ARM32(_crtAssertBusy)
+F_ARM32(_crtBreakAlloc)
+F_ARM32(_crtDbgFlag)
 _cscanf
 _cscanf_l
 _cscanf_s
 _cscanf_s_l
-_ctime32
+F_ARM_ANY(_ctime32)
+F_I386(_ctime32 == ctime)
 ; _ctime32_s replaced by emu
 _ctime64
 ; _ctime64_s replaced by emu
-_ctypea DATA
+_ctype F_I386(DATA)
 _cwait
 _cwprintf
 _cwprintf_l
@@ -452,9 +452,9 @@ _cwscanf_l
 _cwscanf_s
 _cwscanf_s_l
 _dstbias DATA
-_daylight DATA
-_difftime32
-_difftime64