GCC 3.2

Kevin B. Hendricks kevin.hendricks@sympatico.ca
Wed Aug 21 10:24:00 GMT 2002


Hi,

Atttached is a datatest.cxx file I abstracted from code that does this in 
the cppu module of OpenOffice.org.  I am not the original author of the 
code (I just pulled it into a standalone version to ease testing).  The 
code is LGPL'd so it should be fine for inclusion if you want it.

Under gcc 2.95.X compile with 
g++ -O2 -odatatest datatest.cxx
./datatest

Under gcc 3.X compile with
g++ -DADJUST_ALIGN -O2 -odatatest datatest.cxx
./datatest

It was not meant to necessarily show problems.  It was meant to detect 
changes from gcc 2.95.X to gcc 3.X that would impact OpenOffice.org C++ to 
UNO component bridging code.

Hope this helps,

Kevin



On August 21, 2002 12:49, Benjamin Kosnik wrote:
> > As is will your tests detect any layout issues (changes in sizeof and
> > offsetof of structure members) like the datatest.cxx, I abstracted
> > from OOo code and sent to Franz?  It was those changes from gcc 2.95.X
> > to gcc 3.X that made the C++ to uno bridge codeneed to use an
> > alignment
>
> No. currently it only checks for added/removed symbols and object size.
> Can you please send me your test file datatest.cxx..
>
> The goal is to get basic ABI stuff in now, and then the sizeof/alignof
> bits can go in at a later date.
>
> -benjamin


More information about the Gcc mailing list