This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [Patch] Allow SECTION_FLAGS to be overridden by EXTRA_CXX_FLAGS
- From: Phil Edwards <phil at jaj dot com>
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Mon, 27 Jan 2003 09:42:23 -0500
- Subject: Re: [Patch] Allow SECTION_FLAGS to be overridden by EXTRA_CXX_FLAGS
- References: <20030126231037.8003.qmail@web21408.mail.yahoo.com>
On Mon, Jan 27, 2003 at 10:10:37AM +1100, Danny Smith wrote:
> The attached patch allows the configure switch:
> --enable-cxx-flags='-fno-data-sections -fno-function-sections'
> to work by reversing the order of @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@
You didn't say that this has been tested (what primary platforms, what
branches), but I'm assuming you have done.
> -fdata-sections and -ffunction-sections appear to offer no advantage
> on mingw32 target but do make larger executeables.
I'm rather surprised that they aren't disabled/ignored on that platform.
(By the compiler, I mean.)
> 2003-01-27 Danny Smith <dannysmith@users.sourceforge.net>
>
> * src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
> @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
> * libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
> * src/Makefile.in: Regenerate.
> * libsupc++/Makefile.in: Regenerate.
While you do need to mention the .in files in the changelog entry, there's
no need to actually post that part of the diff.
This is okay for mainline.
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002