Module Name: src
Committed By: mrg
Date: Tue Mar 15 06:13:47 UTC 2016
Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3: Makefile
src/external/gpl3/gcc/lib/libsupc++: Makefile.common
Log Message:
update to build GCC 5.3's libstdc++. include the dual ABI code.
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/libsupc++/Makefile.common
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/lib/libstdc++-v3/Makefile
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.20 src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.21
--- src/external/gpl3/gcc/lib/libstdc++-v3/Makefile:1.20 Thu Jan 29 21:12:10 2015
+++ src/external/gpl3/gcc/lib/libstdc++-v3/Makefile Tue Mar 15 06:13:47 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2015/01/29 21:12:10 joerg Exp $
+# $NetBSD: Makefile,v 1.21 2016/03/15 06:13:47 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -28,7 +28,7 @@ CWARNFLAGS.clang+= -Wno-logical-op-paren
.include "${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 7
-SHLIB_MINOR= 3
+SHLIB_MINOR= 4
SUBDIR= include
@@ -60,23 +60,6 @@ COPTS.hashtable_c++0x.cc= -fimplicit-te
COPTS.bitmap_allocator.cc = -fimplicit-templates
CPPFLAGS.strstream.cc= -I$(GLIBCPP_INCLUDE_DIR)/backward -Wno-deprecated
-# XXX also need this for some PCHs.
-CPPFLAGS.atomic.cc = -std=gnu++0x
-CPPFLAGS.compatibility-c++0x.cc = -std=gnu++0x
-CPPFLAGS.functexcept.cc = -std=gnu++0x
-CPPFLAGS.hash_c++0x.cc = -std=gnu++0x
-CPPFLAGS.hashtable_c++0x.cc = -std=gnu++0x
-CPPFLAGS.limits.cc = -std=gnu++0x
-CPPFLAGS.system_error.cc = -std=gnu++0x
-CPPFLAGS.fstream-inst.cc = -std=gnu++0x
-CPPFLAGS.string-inst.cc = -std=gnu++0x
-CPPFLAGS.wstring-inst.cc = -std=gnu++0x
-CPPFLAGS.mutex.cc = -std=gnu++0x
-CPPFLAGS.condition_variable.cc = -std=gnu++0x
-CPPFLAGS.chrono.cc = -std=gnu++0x
-CPPFLAGS.thread.cc = -std=gnu++0x
-CPPFLAGS.future.cc = -std=gnu++0x
-
CPPFLAGS.cp-demangle.cc += -DIN_GLIBCPP_V3
CPPFLAGS.concept-inst.cc += -D_GLIBCXX_CONCEPT_CHECKS
CPPFLAGS.parallel_list.cc += -D_GLIBCXX_PARALLEL
@@ -102,7 +85,11 @@ BUILDSYMLINKS+= \
${GLIBCXX_SRCDIR}/${G_CLOCALE_CC} c++locale.cc \
${GLIBCXX_SRCDIR}/${G_BASIC_FILE_CC} basic_file.cc \
${DIST}/libiberty/cp-demangle.c cp-demangle.c \
- ${DIST}/libiberty/cp-demangle.h cp-demangle.h
+ ${DIST}/libiberty/cp-demangle.h cp-demangle.h \
+ ${GLIBCXX_SRCDIR}/${G_CCOLLATE_CC} collate_members_cow.cc \
+ ${GLIBCXX_SRCDIR}/${G_CMESSAGES_CC} messages_members_cow.cc \
+ ${GLIBCXX_SRCDIR}/${G_CMONEY_CC} monetary_members_cow.cc \
+ ${GLIBCXX_SRCDIR}/${G_CNUMERIC_CC} numeric_members_cow.cc
.if ${HAVE_LIBGCC_EH} == "no"
G_CONFIGLINKS:= ${G_CONFIGLINKS:S,libgcc/config/arm/unwind-arm.h,libgcc/unwind-generic.h,}
@@ -117,12 +104,19 @@ DPSRCS+= ${_dst}
.endif
.endif
-.for f in compatibility-c++0x compatibility-atomic-c++0x \
- compatibility-thread-c++0x compatibility-chrono chrono \
- condition_variable debug functexcept functional future \
- hash_c++0x hashtable_c++0x limits mutex placeholders \
- random regex shared_ptr system_error thread
-COPTS.${f}.cc+= -std=gnu++11
+# XXX Make this either/or, not one, and maybe another
+.for _s in ${SRCS:M*.cc}
+COPTS.${_s}+= -std=gnu++11
+.endfor
+.for _s in ${G_CPP98_SOURCES:M*.cc}
+COPTS.${_s}+= -std=gnu++98
+.endfor
+
+.for f in collate_members_cow \
+ messages_members_cow \
+ monetary_members_cow \
+ numeric_members_cow
+COPTS.${f}.cc+= -fimplicit-templates ${G_GLIBCXX_ABI_FLAGS}
.endfor
.include <bsd.lib.mk>
Index: src/external/gpl3/gcc/lib/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.8 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.9
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.8 Sun Jun 1 19:51:02 2014
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common Tue Mar 15 06:13:47 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.8 2014/06/01 19:51:02 mrg Exp $
+# $NetBSD: Makefile.common,v 1.9 2016/03/15 06:13:47 mrg Exp $
DIST= ${GCCDIST}
GNUHOSTDIST= ${DIST}
@@ -24,6 +24,15 @@ CPPFLAGS+= -DHAVE_STDLIB_H -DHAVE_STRING
CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
-.for f in eh_ptr eh_throw guard atexit_thread nested_exception
-COPTS.${f}.cc+= -std=gnu++0x
+STD_GNU11= bad_array_length bad_array_new \
+ eh_aux_runtime eh_ptr eh_terminate eh_throw \
+ guard atexit_thread nested_exception \
+ new_handler new_op new_opnt
+.for _f in ${STD_GNU11}
+COPTS.${_f}.cc= -std=gnu++11
+.endfor
+
+STD_GNU14= del_ops del_opvs
+.for _f in ${STD_GNU14}
+COPTS.${_f}.cc= -std=gnu++14 -Wno-sized-deallocation
.endfor