This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, testsuite] Skip case struct-layout-1 for targets using short enums.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Terry Guo <terry dot guo at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, ro at CeBiTec dot Uni-Bielefeld dot DE, mikestump at comcast dot net
- Date: Thu, 1 Sep 2011 08:46:00 +0200
- Subject: Re: [Patch, testsuite] Skip case struct-layout-1 for targets using short enums.
- References: <000801cc6847$47460680$d5d21380$@guo@arm.com> <20110901061337.GN2687@tyan-ft48-01.lab.bos.redhat.com> <000a01cc6870$fc7edc60$f57c9520$@guo@arm.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Sep 01, 2011 at 02:32:51PM +0800, Terry Guo wrote:
> FAIL: gcc.dg/compat/struct-layout-1 c_compat_x_tst.o compile
> FAIL: gcc.dg/compat/struct-layout-1 c_compat_y_tst.o compile
> UNRESOLVED: gcc.dg/compat/struct-layout-1 c_compat_x_tst.o-c_compat_y_tst.o
> link
> UNRESOLVED: gcc.dg/compat/struct-layout-1 c_compat_x_tst.o-c_compat_y_tst.o
> execute
>
> On my machine, the error message is "error: width of 'a' exceeds its type".
> My GCC is cross built for arm-none-eabi based on upstream GCC 4.6. The
> command I run this case is simply as: "make check-gcc
> RUNTESTFLAGS="--target_board=arm-none-eabi-qemu/-mthumb/-mcpu=cortex-m3
> compat.exp=struct-layout-1*". Are there anything else I should do to pass
> this case?
Look into gcc/testsuite/gcc/gcc.log, search for struct-layout-1_generate.exe
and see whether -e has been passed to it? If not, debug the tcl bits which
are supposed to pass it, but for some reason don't, if yes, look into the
generator under debugger why it generates the large enum bitfield bitsizes
anyway (you can cut'n'paste the *generate.exe command line, compile it with
-g and rerun it under debugger...).
Jakub