On Thursday 30 October 2025 10:04:42 LIU Hao wrote:
> 在 2025-10-30 07:35, Pali Rohár 写道:
> > Hello, the new mingw-w64 implementation of ConvertStringToBSTR caused
> > that it is not possible to compile Qemu.
> > 
> > More info is in the bug report:
> > https://sourceforge.net/p/mingw-w64/bugs/1013/
> > 
> > Could you look at it?
> > 
> > I was thinking if the using of "__attribute__((gnu_inline)) inline" does
> > fix this problem. IIRC gcc's C++ compiler supports also C's gnu_inline
> > semantic of inlining, as an extension to ISO C++ inlining.
> > 
> > 
> > I'm not sure if somebody is watching the sourceforge mingw-w64 bug
> > tracker, so I'm writing this email.
> 
> Using `gnu_inline` would require a non-inline definition be provided in
> mingw-w64 CRT when it can't be inlined.

I see. I did some experiments and seems that this works in C, but not in C++.
Seems that in C it does not require non-inline definition if the
function is not declared with extern. In C when it is declared with
extern then it behaves same as in C++ without extern, and the function
symbol is not emitted.

> It should be defined only `#if __MINGW64_VERSION_MAJOR < 14`.


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to