Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/lib/libsupc++ pull in atomicity.h (atomici...



details:   https://anonhg.NetBSD.org/src/rev/b989df6d7c5d
branches:  trunk
changeset: 931053:b989df6d7c5d
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Apr 21 05:23:41 2020 +0000

description:
pull in atomicity.h (atomicity.cc) on sparc.  3 of the objects
use these interfaces and this avoids link errors

fixes PR#54660.

diffstat:

 external/gpl3/gcc/lib/libsupc++/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 0adf004da3b4 -r b989df6d7c5d external/gpl3/gcc/lib/libsupc++/Makefile
--- a/external/gpl3/gcc/lib/libsupc++/Makefile  Tue Apr 21 05:18:14 2020 +0000
+++ b/external/gpl3/gcc/lib/libsupc++/Makefile  Tue Apr 21 05:23:41 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.12 2019/01/19 17:11:02 mrg Exp $
+#      $NetBSD: Makefile,v 1.13 2020/04/21 05:23:41 mrg Exp $
 
 REQUIRETOOLS=  yes
 NOLINT=                # defined
@@ -25,6 +25,15 @@
 SRCS=          ${LIBSUPCXXSRCS} xmalloc.c
 CXXFLAGS+=     ${G_SECTION_FLAGS}
 
+# XXX PR#54660
+.if ${MACHINE} == "sparc"
+SRCS+=         atomicity.cc
+DIST=          ${GCCDIST}
+GLIBCXX_SRCDIR=        ${DIST}/libstdc++-v3
+BUILDSYMLINKS+=        \
+       ${GLIBCXX_SRCDIR}/${G_ATOMICITY_SRCDIR}/atomicity.h atomicity.cc
+.endif
+
 COPTS.cp-demangle.c = -Wno-stack-protector -Wno-unused-function
 
 .include "../Makefile.gthr"



Home | Main Index | Thread Index | Old Index