On Tue, 7 Mar 2023, LIU Hao wrote:
在 2023-03-07 21:10, Martin Storsjö 写道:
I guess I could have a look. My guess is that that codepath has bitrotted,
but maybe it still works on i386/x86_64 msvcrt.dll at least.
In case it's mostly broken and nobody is using it, what path forward do you
see for it? Just ripping it out?
AFAICT the i686 `_setjmp()` takes one argument and the x86_64 one takes two;
not sure about ARM.
Yes, possibly... Although in practice, we use _setjmp3, not the
plain _setjmp function.
My opinion is that those #if conditions should check for the actual
target macro, instead of `USE_NO_MINGW_SETJMP_TWO_ARGS` which can be
removed thereafter.
Yes, I think that might be reasonable - although that would be a behaviour
change, since we've been calling _setjmp3 on i686 for the last decade.
Since we already have got such a codepath there, we could just remove the
outer USE_NO_MINGW_SETJMP_TWO_ARGS condition anyway. (Since
82347ded0d43a80de68b6a35a209717bded5f28a it seems to have been mostly
unused.)
To add to the soup, there's also a define _INC_SETJMPEX, set by
setjmpex.h, which affects how things behave. Not sure exactly how that
behaves and in which configurations that works...
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public