Am Freitag, dem 08.05.2026 um 10:48 +0200 schrieb Arsen Arsenović: > Martin Uecker <[email protected]> writes: ...
> > > I am not working on libgomp, so my opinion may not be important. > > But for libraries such libubsan I observe that people created > > alternatives in C so having a C version would generally be more > > useful. > > That's a strange choice, given that all compilers that implement ubsan > also implement C++ (to my awareness). > > Perhaps there are other factors at play, such as libsanitizer not being > possible to compile in a given environment. > > Indeed, that's why e.g. Managarm has a C++ reimplementation of libubsan > and friends for its kernel: > https://github.com/managarm/managarm/blob/master/kernel/thor/generic/ubsan.cpp I am not sure what the reason was why libsanitizer could not be used, but I would suspect that this was also caused by some complexity related to C++. A C library you can usually be used everywhere without much trouble, including various kernel, embedded, and free-standing contexts. So this usually provides more value to users. This may be irrelevant for libgomp though. Martin
