From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Girod To: Alexandre Oliva Cc: egcs@egcs.cygnus.com Subject: Re: virtual inheritance: optimization for empty objects Date: Sun, 14 Mar 1999 11:01:00 -0000 Message-id: <1yk8wjdhf7.fsf@sinkku.ntc.nokia.com> In-reply-to: Alexandre Oliva's message of 4 Mar 1999 21:40:26 GMT References: X-SW-Source: 1999-03/msg00477.html >>>>> "AO" == Alexandre Oliva writes: AO> On Mar 4, 1999, Alexander Schiemann 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. AO> The latest snapshots will, if you compile with -fnew-abi. I am very interested, but trying with a small example on 19990314, I get: sizeof> c++ -o foo -fnew-abi foo.C foo.C: In function `int main()': foo.C:36: `cout' undeclared in namespace `std' foo.C:46: `endl' undeclared in namespace `std' I used std::cout and std::endl. I works without -fnew-abi. I guess I need to rebuild the libstdc++, or what exactly should I rebuild?... Are there instructions? Best Regards! Marc -- Marc Girod Hiomo 5/1 Voice: +358-9-511 23746 Nokia Telecommunications P.O. Box 320 Mobile: +358-40-569 7954 NWS/NMS/NMS for Data 00045 NOKIA Group Fax: +358-9-511 23580 Finland marc.girod@ntc.nokia.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Girod To: Alexandre Oliva Cc: egcs@egcs.cygnus.com Subject: Re: virtual inheritance: optimization for empty objects Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: <1yk8wjdhf7.fsf@sinkku.ntc.nokia.com> References: X-SW-Source: 1999-03n/msg00482.html Message-ID: <19990331234600.aEJnWBQWYjePNV45X_tUAMaZvRYIp6wBoG4mZaYftik@z> >>>>> "AO" == Alexandre Oliva writes: AO> On Mar 4, 1999, Alexander Schiemann 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. AO> The latest snapshots will, if you compile with -fnew-abi. I am very interested, but trying with a small example on 19990314, I get: sizeof> c++ -o foo -fnew-abi foo.C foo.C: In function `int main()': foo.C:36: `cout' undeclared in namespace `std' foo.C:46: `endl' undeclared in namespace `std' I used std::cout and std::endl. I works without -fnew-abi. I guess I need to rebuild the libstdc++, or what exactly should I rebuild?... Are there instructions? Best Regards! Marc -- Marc Girod Hiomo 5/1 Voice: +358-9-511 23746 Nokia Telecommunications P.O. Box 320 Mobile: +358-40-569 7954 NWS/NMS/NMS for Data 00045 NOKIA Group Fax: +358-9-511 23580 Finland marc.girod@ntc.nokia.com