C++ ABI testing issues, gcc-3.3 <-> gcc-3.2 compatibility

Andreas Schwab schwab@suse.de
Mon Aug 5 05:58:00 GMT 2002


Andreas Jaeger <aj@suse.de> writes:

|> Jakub Jelinek <jakub@redhat.com> writes:
|> 
|> > On Mon, Aug 05, 2002 at 09:00:29AM +0200, Andreas Jaeger wrote:
|> >> "Goodman, Joe" <joe.goodman@intel.com> writes:
|> >> 
|> >> > We provide a C++ ABI test suite you can download from
|> >> > http://developer.intel.com/software/products/opensource/.  Please feel free
|> >> > to download and run this suite.
|> >> 
|> >> Thanks for reminding us.  I did test it some weeks ago and decided to
|> >> look again add it - and noticed that I configured it wrong the last
|> >> time and was not executing the tests (config.mk disables them by
|> >> default on non-ia64 platforms :-( ).
|> >> 
|> >> Here're the results on i686-linux-gnu from GCC 3.2 branch as of
|> >> 2002-08-04:
|> >
|> > On alpha-redhat-linux, the only failing test was:
|> > ./bitfield3
|> > Test 4 Failure: bitfield3.cpp:60
|> >
|> > This is about:
|> > struct A { char a; char b:1; int :0; char c:1; char d; };
|> > sizeof(A). g++ 3.2 gives 6, the testsuite expects 2*sizeof(int).
|> > That's the same result as given on IA-32 or IA-64, but those
|> > tests are
|> > #if !defined __i386__ && !defined __ia64__
|> > Guess at least __alpha__ is a good candidate for this treatment too.
|> 
|> x86-64 has the same problem, everything passes except bitfield3 (this
|> is with GCC 3.2 plus some extra patches),

Same on s390x.  Are there any platforms where it *does* pass?

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc mailing list