Random ideas for 3.7

Christian Franke Christian.Franke@t-online.de
Sun Apr 13 11:34:38 GMT 2025


Corinna Vinschen wrote:
> If you have other ideas what could be helpful for Cygwin, don't be shy
> to add it to this thread.  Ideally with the intention to look into
> implementing it by yourself, but at least a certain willingness to look
> into the source code and discuss potential ways to implement it given
> the current framework.

- Newlib: Partly enable _FORTIFY_SOURCE support also for C++

Unlike the related support in Linux(glibc) and MinGW-w64 includes, 
_FORTIFY_SOURCE support is guarded by '!defined(__cplusplus)' in 
sys/features.h. This is likely because some functions, in particular 
*printf(), are redirected by #defines instead of inline wrappers.

I guess the existing inline wrappers could be safely enabled also for 
C++. May require some additions due to subtle differences of inline 
semantics.

Inline wrappers for variable argument functions could later be provided 
if __builtin_va_arg_pack() is available (gcc: yes, clang: no).

-- 
Regards,
Christian



More information about the Cygwin-developers mailing list