On Wed, 18 Mar 2026 at 13:32, Jonathan Wakely <[email protected]> wrote:
>
> On Tue, 17 Mar 2026 at 21:09, Joseph Myers <[email protected]> wrote:
> >
> > On Tue, 17 Mar 2026, Jonathan Wakely wrote:
> >
> > > Anyway, I've reverted the patch now. We will have to figure out how to
> > > deal with funky targets. If va_list does not have external linkage on
> > > those targets, then it's already undefined to use it in C++, so really
> > > that needs to be fixed in those targets. Or we hack workarounds into
> > > the C++ front end for these system headers.
> >
> > Maybe the targets need to set up __va_list_tag in some different way then,
> > since i386 / rs6000 / s390 also have __va_list_tag but don't seem to have
> > this issue (and I don't know whether stormy16 or xtensa have it or not
> > since glibc doesn't support those architectures).
>
> I opened these for the va_list definitions on those targets:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124565
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124566

Nathaniel made a change that fies the errors on freebsd (and upstream
FreeBSD have also fixed fenv.h for CURRENT) and Jakub has fixed the
va_list linkage problems.

I've re-pushed the original patch, but with some makefile hacks so
that if the module interface units fail to compile on any other
targets, it doesn't break bootstrap. If we can't compile the module,
we will still be able to build libstdc++.so it just won't include the
module initialization functions.

Reply via email to