-Wabi is misdesigned (answers the wrong question)

Joe Buck jbuck@synopsys.com
Thu Oct 23 02:50:00 GMT 2003


On Wed, 22 Oct 2003, Joe Buck wrote:
> > The picture I had in mind when we first talked about it was this:
> > if -Wabi is on, we would compute the layout of a class using the
> > 3.2 algorithm and the ABI-compliant (modulo unknown bugs) algorithm,
> > and object iff there is a difference.
 
On Thu, Oct 23, 2003 at 01:15:12AM +0200, Michael Matz wrote:
> So, if that's too complicated to implement, we should simply make -Wabi a
> nop (for compat) and in the future abstain from implementing such warning
> (IIRC Mark already was against it in the first hand because it basically
> produced too many false positives.)

It's not too complicated to implement, as the compiler already knows how
to compute both layouts.

However, since the 3.4 libstdc++ has changes it's probably not worth
sweating about.
 



More information about the Gcc mailing list