Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 14:09:15 +0000 (UTC)
From:      "Stephane E. Potvin" <sepotvin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r202808 - in head/gnu/lib: libstdc++ libsupc++
Message-ID:  <201001221409.o0ME9Fnh091170@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sepotvin
Date: Fri Jan 22 14:09:15 2010
New Revision: 202808
URL: http://svn.freebsd.org/changeset/base/202808

Log:
  Use the new PO_CXXFLAGS from r202807 to remove the '-ffunction-sections'
  flag when compiling profiled objects as it's ignored by the compiler.
  This removes the associated warning for each file compiled.
  
  MFC after:	1 month

Modified:
  head/gnu/lib/libstdc++/Makefile
  head/gnu/lib/libsupc++/Makefile

Modified: head/gnu/lib/libstdc++/Makefile
==============================================================================
--- head/gnu/lib/libstdc++/Makefile	Fri Jan 22 14:05:48 2010	(r202807)
+++ head/gnu/lib/libstdc++/Makefile	Fri Jan 22 14:09:15 2010	(r202808)
@@ -21,6 +21,7 @@ CFLAGS+=	-I${GCCLIB}/include -I${SRCDIR}
 CFLAGS+=	-frandom-seed=RepeatabilityConsideredGood
 CXXFLAGS+=	-fno-implicit-templates -ffunction-sections -fdata-sections \
 		-Wno-deprecated
+PO_CXXFLAGS=	${CXXFLAGS:N-ffunction-sections}
 
 DPADD=		${LIBM}
 LDADD=		-lm

Modified: head/gnu/lib/libsupc++/Makefile
==============================================================================
--- head/gnu/lib/libsupc++/Makefile	Fri Jan 22 14:05:48 2010	(r202807)
+++ head/gnu/lib/libsupc++/Makefile	Fri Jan 22 14:09:15 2010	(r202808)
@@ -23,6 +23,7 @@ CFLAGS+=	-I${GCCLIB}/include -I${SRCDIR}
 CFLAGS+=	-I${.CURDIR}/../libstdc++ -I.
 CFLAGS+=	-frandom-seed=RepeatabilityConsideredGood
 CXXFLAGS+=	-fno-implicit-templates -ffunction-sections -fdata-sections
+PO_CXXFLAGS=    ${CXXFLAGS:N-ffunction-sections}
 
 HDRS=	exception new typeinfo cxxabi.h exception_defines.h
 INCS=	${HDRS:S;^;${SRCDIR}/;}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001221409.o0ME9Fnh091170>