Re: Transitioning libgomp from C to C++ implementation

Martin Uecker via Gcc <[email protected]>
Newsgroups gmane.comp.gcc.devel
Message-ID <[email protected]>
Am Freitag, dem 08.05.2026 um 06:23 -0600 schrieb Alex (Waffl3x):
> On Fri, May 8, 2026 at 3:51 AM Martin Uecker <[email protected]> wrote:
> > 
> > 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
> 
> C++ supports specifying language linkage with extern "C", the interface
> of a library does not need to match its implementation. Which is also
> what is being proposed here to avoid breaking ABI.

I understand this, but this is true also for libubsan and still people
reimplement libubsan in C because the C++ version does not seem to fit
their needs. I do not know the exact reasons, and I am also not sure those
would apply to libgomp.

Martin



> 
> Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.