virtual inheritance: optimization for empty objects

Alexandre Oliva oliva@dcc.unicamp.br
Wed Mar 31 23:46:00 GMT 1999


On Mar  4, 1999, Alexander Schiemann <aschiem@count.math.uni-sb.de> wrote:

> deriving a class B from class A without adding a data-member
> does not increase the size.
> But with virtual inheritance egcs-1.1.1 does not take advantage
> of such a situation.

The latest snapshots will, if you compile with -fnew-abi.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil




More information about the Gcc mailing list