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 - new shlib minor
details: https://anonhg.NetBSD.org/src/rev/d374e231f701
branches: trunk
changeset: 448397:d374e231f701
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Feb 01 10:37:13 2019 +0000
description:
- new shlib minor
- move -std=* handling, besides the list in CXX11_ALWAYS, to
libsupc++/Makefile.common
- include the arch defs.mk to obtain ${G_*_SOURCES} and use them
for -std= setting
diffstat:
external/gpl3/gcc/lib/libstdc++-v3/Makefile | 29 +---------
external/gpl3/gcc/lib/libsupc++/Makefile.common | 69 ++++++++++++++----------
2 files changed, 42 insertions(+), 56 deletions(-)
diffs (153 lines):
diff -r 8faae3e98564 -r d374e231f701 external/gpl3/gcc/lib/libstdc++-v3/Makefile
--- a/external/gpl3/gcc/lib/libstdc++-v3/Makefile Fri Feb 01 10:36:33 2019 +0000
+++ b/external/gpl3/gcc/lib/libstdc++-v3/Makefile Fri Feb 01 10:37:13 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.38 2019/01/31 08:42:03 mrg Exp $
+# $NetBSD: Makefile,v 1.39 2019/02/01 10:37:13 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -47,7 +47,7 @@
.include "${.CURDIR}/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk"
SHLIB_MAJOR= 8
-SHLIB_MINOR= 1
+SHLIB_MINOR= 2
SUBDIR= include
@@ -153,33 +153,10 @@
compatibility-condvar.cc \
ios_failure.cc
-.for _s in ${G_CPP11_SOURCES:M*.cc} ${CXX11_ALWAYS}
+.for _s in ${CXX11_ALWAYS}
COPTS.${_s}+= -std=gnu++11
.endfor
-.for _s in ${G_FILESYSTEM_SOURCES:M*.cc}
-COPTS.${_s}+= -std=gnu++14
-.endfor
-
-CXX98_ALWAYS= collate_members_cow.cc \
- messages_members_cow.cc \
- monetary_members_cow.cc \
- numeric_members_cow.cc \
- atomicity.cc \
- collate_members.cc \
- messages_members.cc \
- monetary_members.cc \
- numeric_members.cc \
- time_members.cc \
- basic_file.cc \
- c++locale.cc
-
-.for _s in ${CXX98_ALWAYS}
-. if empty(COPTS.${_s}:M-std=*)
-#COPTS.${_s}+= -std=gnu++98
-. endif
-.endfor
-
COPTS.cp-demangle.c += -Wno-unused-function
COPTS.ext-inst.cc+= -Wno-error
diff -r 8faae3e98564 -r d374e231f701 external/gpl3/gcc/lib/libsupc++/Makefile.common
--- a/external/gpl3/gcc/lib/libsupc++/Makefile.common Fri Feb 01 10:36:33 2019 +0000
+++ b/external/gpl3/gcc/lib/libsupc++/Makefile.common Fri Feb 01 10:37:13 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.11 2019/01/31 06:50:51 mrg Exp $
+# $NetBSD: Makefile.common,v 1.12 2019/02/01 10:37:13 mrg Exp $
DIST= ${GCCDIST}
GNUHOSTDIST= ${DIST}
@@ -12,7 +12,12 @@
LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH}
.endif
+# Make sure we get G_*_SOURCES, etc.*, for the .for loops
+.include "${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH}/defs.mk"
+
LIBSTDCXXSRCS= ${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES} ${G_FILESYSTEM_SOURCES}
+# XXX XXX dir.o doesn't have <deque> stuff properly, leave it out for now?
+LIBSTDCXXSRCS= ${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES}
LIBSUPCXXSRCS= ${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
CPPFLAGS+= -I${DIST}/gcc
@@ -24,44 +29,48 @@
CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
+.for _f in ${G_CPP98_SOURCES}
+COPTS.${_f}+= -std=gnu++98
+.endfor
+
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
+ bad_array_length.cc \
+ bad_array_new.cc \
+ eh_aux_runtime.cc \
+ eh_ptr.cc \
+ eh_terminate.cc \
+ eh_throw.cc \
+ guard.cc \
+ atexit_thread.cc \
+ nested_exception.cc \
+ new_handler.cc \
+ new_op.cc \
+ new_opnt.cc
-.for _f in ${STD_GNU11}
-COPTS.${_f}.cc= -std=gnu++11
+.for _f in ${STD_GNU11} ${G_CPP11_SOURCES:M*.cc}
+COPTS.${_f}+= -std=gnu++11
.endfor
STD_GNU14= \
- del_ops \
- del_opvs
+ del_ops.cc \
+ del_opvs.cc
-.for _f in ${STD_GNU14}
-COPTS.${_f}.cc= -std=gnu++14 -Wno-sized-deallocation
+.for _f in ${STD_GNU14} ${G_FILESYSTEM_SOURCES:M*.cc}
+COPTS.${_f}+= -std=gnu++14 -Wno-sized-deallocation
.endfor
STD_GNU1Z= \
- new_opa \
- new_opant \
- new_opva \
- new_opvant \
- del_opa \
- del_opant \
- del_opsa \
- del_opva \
- del_opvant \
- del_opvsa
+ new_opa.cc \
+ new_opant.cc \
+ new_opva.cc \
+ new_opvant.cc \
+ del_opa.cc \
+ del_opant.cc \
+ del_opsa.cc \
+ del_opva.cc \
+ del_opvant.cc \
+ del_opvsa.cc
.for _f in ${STD_GNU1Z}
-COPTS.${_f}.cc= -std=gnu++1z
+COPTS.${_f}+= -std=gnu++1z
.endfor
Home |
Main Index |
Thread Index |
Old Index