On Thu, Sep 01, 2011 at 03:09:34PM +0800, Terry Guo wrote: > What you said is for compat/struct-layout-1.exp. What I said is for > compat/compat.exp. The case contains three files struct-layout-1_x.c, > struct-layout-1_y.c and struct-layout-1_main.c. All of them are independent > files and not generated by generate.exe. Meanwhile do you think it is > necessary to keep this cases in compat.exp given we already have > struct-layout-1.exp?
The files are there to test the infrastructure. I'd say just try 2011-09-01 Jakub Jelinek <ja...@redhat.com> * gcc.dg/compat/struct-layout-1_test.h: Decrease bitfield size to work even with -fshort-enums. --- gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h 2008-09-05 12:54:32.000000000 +0200 +++ gcc/testsuite/gcc.dg/compat/struct-layout-1_test.h 2011-09-01 09:21:20.200426411 +0200 @@ -1,5 +1 @@ -#if (__SIZEOF_INT__ >= 4) -T(0,enum E2 a:31;,B(0,a,e2_m1,e2_0)) -#else -T(0,enum E2 a:15;,B(0,a,e2_m1,e2_0)) -#endif +T(0,enum E2 a:7;,B(0,a,e2_m1,e2_0)) instead. Jakub