-Wabi is misdesigned (answers the wrong question)

Mark Mitchell mark@codesourcery.com
Fri Oct 24 19:26:00 GMT 2003


On Wed, 2003-10-22 at 17:20, law@redhat.com 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 <mark@codesourcery.com>
CodeSourcery, LLC



More information about the Gcc mailing list