This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: ABI conformance testsuite


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]