On 11/03/21 17:46 +0100, Jakub Jelinek via Libstdc++ wrote:
On Thu, Mar 11, 2021 at 04:31:51PM +0000, Jonathan Wakely via Gcc-patches wrote:
On 11/03/21 16:27 +0000, Jonathan Wakely wrote:
> That seems cleaner to me, rather than adding another variable with
> minor differences from the existing AM_CXXFLAGS.
My specific concern is that AM_CXXFLAGS and AM_CXXFLAGS_LT will get
out of sync, i.e. we'll add something to the former and forget to add
it to the latter.
If we keep using AM_CXXFLAGS but cancel out the -fvtable-verify=std
option, then there aren't two separate variables that can diverge.
But I think it's too late in the gcc-11 process for that kind of
refactoring.
I think $(filter-out -fvtable-verify=std,$(AM_CXXFLAGS)) should be fairly
simple thing if that is all that needs to be done.
Yes, we could do that now, and then in stage 1 look at the other
changes (like moving -Wl,-u options to the link flags not cxxflags).
Using filter-out does assume that no target is going to add anything
different that should also be filtered out, but that's true as of
today.