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]
Other format: [Raw text]

RFC: Generated structure layout tests for gcc.dg/compat/struct-layout-1 (take 2)


Hi!

I have extended the gcc.dg/compat/struct-layout-1 generated testsuite
I have posted last week.
The tarball is now too big for posting here, so I've put it on ftp:

ftp://people.redhat.com/jakub/gcc/tests/gcc.dg-compat-struct_layout_1.tar.bz2

The unpacked size of the directory is around 4M and contains 145 testcases
(with a total of 15135 tests in it).
Unfortunately, some tests fail even when using the same compiler (be it 3.3,
3.4 or 3.5) on i386, e.g.:
extern void abort (void);
struct S { int:0; } a, b;
void foo (struct S x, struct S *y)
{
  if (y != &b)
    abort ();
}
int main (void)
{
  foo (a, &b);
  return 0;
}
, other tests crash on x86-64, so some effort will need to be spent on
fixing all the bugs.

Do you think the tests should be part of make check or should we add say
make xcheck (like glibc has) for tests which probably don't have to be run
after every single GCC change, but would be good to run every now and then?

	Jakub


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