This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Passing -Wabi to all target libraries
- From: Phil Edwards <phil at jaj dot com>
- To: Joe Buck <Joe dot Buck at synopsys dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 3 Sep 2002 16:38:18 -0400
- Subject: Re: Passing -Wabi to all target libraries
- References: <20020829131151.A31575@disaster.jaj.com> <200208292028.NAA25210@atrus.synopsys.com>
On Thu, Aug 29, 2002 at 01:28:17PM -0700, Joe Buck wrote:
>
> > I worked up a patch to always build libstdc++ with -Wabi, and then thought
> > that perhaps all C++-using target libraries should have this on. What are
> > people's thoughts on this?
>
> Yes, it's a good idea.
Someone else will have to do it. I have been defeated by toplevel configury.
- Makefile.in sets and passes both CXXFLAGS_FOR_TARGET and
LIBCXXFLAGS_FOR_TARGET, but in target libraries, sets CXXFLAGS to the
first, not the second. I don't know what the second variable is meant
to be used for, given that it /isn't/ used even though all the targets
are libraries.
- Adding -Wabi to CXXFLAGS_FOR_TARGET doesn't change anything, because the
assignment on line 141 of Makefile.in is later overridden (not appended
to) by a fragment inserted into the generated Makefile. I don't know
which fragment or where it comes from. The variable is not documented as
"this is substituted by configure," so this took a while to debug.
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