This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ and aliasing bools
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Joe Buck <jbuck at synopsys dot COM>, Daniel Berlin <dan at dberlin dot org>, Neil Booth <neil at daikokuya dot demon dot co dot uk>, Paolo Carlini <pcarlini at unitus dot it>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: 28 Jan 2002 23:40:53 -0200
- Subject: Re: g++ and aliasing bools
- Organization: GCC Team, Red Hat
- References: <6490000.1012267669@warlock.codesourcery.com>
On Jan 28, 2002, Mark Mitchell <mark@codesourcery.com> wrote:
> Once we introduce vtables, more complicated things can happen. (We
> have to make sure that the vptr fields are in the same alias set.
> We may already do this; I remember fixing some problem like this
> at some point.) If we have virtual bases, things are very complex;
> layouts are semi-dynamic. It may be that it "just works", but I
> will continue to play devil's advocate. You can continu to make
> persusasive arguments for safety. :-)
It can still be mapped to C struct, given appropriate types for the
vptr fields, right? So Joe's point still holds. We may have to be
careful about how we assign aliases to these hidden fields, but it's
not like they are not representable in C :-)
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me