This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: sizeof(int) in testsuite
- From: Jakub Jelinek <jakub at redhat dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 3 Jun 2005 11:21:08 +0200
- Subject: Re: sizeof(int) in testsuite
- References: <200506030149.j531n34m025197@greed.delorie.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jun 02, 2005 at 09:49:03PM -0400, DJ Delorie wrote:
>
> gcc.dg/compat/struct-layout-1_generate.c assumes sizeof(int) is 4.
> This of course fails on any target where sizeof(int) is 2. They may
> fail when sizeof(int) is 8 too, or at least they won't be testing the
> full range of possibilities.
struct-layout-1_generate.c is run on the host, not on the target.
And for hosts AFAIK GCC requires 32-bit int.
Jakub