This is the mail archive of the
mailing list for the GCC project.
Re: -Wabi is misdesigned (answers the wrong question)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: law at redhat dot com
- Cc: Joe Buck <jbuck at synopsys dot com>, Michael Matz <matz at suse dot de>, gcc at gcc dot gnu dot org
- Date: Fri, 24 Oct 2003 10:59:52 -0700
- Subject: Re: -Wabi is misdesigned (answers the wrong question)
- Organization: CodeSourcery, LLC
- References: <200310230020.h9N0KJ0U028864@speedy.slc.redhat.com>
- Reply-to: mark at codesourcery dot com
On Wed, 2003-10-22 at 17:20, firstname.lastname@example.org wrote:
> In message <20031022165429.A20170@synopsys.com>, Joe Buck writes:
> >It's not too complicated to implement, as the compiler already knows how
> >to compute both layouts.
> But it may be difficult to compute one layout without side effects which
> may make computing the second layout exceedingly difficult.
Yes, that's the case.
It's probably possible to do what Joe wants, but it's not trivial. One
would have to be very careful not to have the first layout algorithm
bias the results of the second; after running the first, you'd want to
clear out the layout entirely and do it again.
You'd risk introducing ABI breakage by doing that.
Mark Mitchell <email@example.com>