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/libstdc++-v3 apply -fimplicit-template...
details: https://anonhg.NetBSD.org/src/rev/047f25664c8d
branches: trunk
changeset: 329246:047f25664c8d
user: mrg <mrg%NetBSD.org@localhost>
date: Fri May 16 09:36:51 2014 +0000
description:
apply -fimplicit-templates instead of forcing -O2. fix the
build fix on platforms that don't use -O2 by default, and
also enables building with -O0.
diffstat:
external/gpl3/gcc/lib/libstdc++-v3/Makefile | 19 +++++--------------
1 files changed, 5 insertions(+), 14 deletions(-)
diffs (40 lines):
diff -r 2280aa4300c0 -r 047f25664c8d external/gpl3/gcc/lib/libstdc++-v3/Makefile
--- a/external/gpl3/gcc/lib/libstdc++-v3/Makefile Fri May 16 09:34:03 2014 +0000
+++ b/external/gpl3/gcc/lib/libstdc++-v3/Makefile Fri May 16 09:36:51 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/05/15 14:37:08 joerg Exp $
+# $NetBSD: Makefile,v 1.11 2014/05/16 09:36:51 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -40,18 +40,7 @@
GLIBCPP_INCLUDE_DIR= ${DESTDIR}/usr/include/g++
-.if ${HAVE_GCC} >= 48
-# Template instantiation bug workaround for -Os
-.if (${MACHINE_ARCH} == "coldfire" || \
- ${MACHINE_ARCH} == "sh3eb" || \
- ${MACHINE_ARCH} == "sh3el" || \
- ${MACHINE_ARCH} == "m68k" || \
- ${MACHINE_ARCH} == "m68000" || \
- ${MACHINE_ARCH} == "vax")
-COPTS.hashtable_c++0x.cc = -O2
-COPTS.bitmap_allocator.cc = -O2
-.endif
-.endif
+# Template instantiation bug workaround for -O<2/s
COPTS.cp-demangle.c = -Wno-stack-protector
COPTS.cp-demangle.c = -Wno-stack-protector
COPTS.fstream-inst.cc = -Wno-stack-protector
@@ -60,7 +49,9 @@
COPTS.ostream-inst.cc = -Wno-stack-protector
COPTS.valarray-inst.cc = -Wno-stack-protector
COPTS.wlocale-inst.cc = -Wno-stack-protector
-COPTS.concept-inst.cc= -D_GLIBCPP_CONCEPT_CHECKS -fimplicit-templates
+COPTS.concept-inst.cc= -fimplicit-templates
+COPTS.hashtable_c++0x.cc= -fimplicit-templates
+COPTS.bitmap_allocator.cc = -fimplicit-templates
CPPFLAGS.strstream.cc= -I$(GLIBCPP_INCLUDE_DIR)/backward -Wno-deprecated
# For GCC 4.5
Home |
Main Index |
Thread Index |
Old Index