PATCH: ABI conformance testsuite

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Tue Jun 5 15:53:00 GMT 2001


Joseph S. Myers writes:

> How does this compare to the other ABI-related tests in GCC, e.g.  
> gcc.c-torture/compat (which seems to lack a testsuite driver, so isn't
> particularly useful) and consistency.vlad?

I hadn't seen the compat stuff, and as you say, it isn't useful as it
stands.  I consider the separation into caller and callee sources that can
be compiled by either native compiler (or compiler to compare to) or gcc
and linked together in any possible combination easier to understand than
having a single source with different parts wrapped in #ifdef COMPILER != 1
or stuff like this.

consistency.vlad is only on the trunk; I had seen it fly by when it was
checked in, but forgot about it since I'm only working on the branch right
now.  It doesn't do the cross-linking I use yet, and it's easiest to check
for compatible calling conventions by really passing args around and
checking in the callee (compiled with either the same compiler, to check
for internal consistency, or another one, for vendor/abi compatibility) if
the arguments are as expected.

Most current test files are full of gccisms (primarily __alignof__,
probably others), so won't compile with most vendor compilers.

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE



More information about the Gcc-patches mailing list