This is the mail archive of the gcc@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]

Re: sizeof(int) in testsuite


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


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