"#define HOST_WIDE_INT long long" OK for ia64-elf cross?

Cristan Szmajda cristan@unsw.edu.au
Sun Jan 6 20:18:00 GMT 2002


Dear gcc-help,

I am trying to upgrade to a clean build of gcc-3.0.3 for
target=ia64-elf from an i386 host.  The problem I get is
this:

	In file included from libgcc2.c:47:
	libgcc2.h:101: no data type for mode `TI'
	libgcc2.h:102: no data type for mode `TI'

I worked around this by adding:

	#define	HOST_WIDE_INT		long long
	#define	HOST_BITS_PER_WIDE_INT	64

to the top of gcc/hwint.h.  Libgcc2 then compiles.

My question is: is this hack legal?  I am getting bugs
related to integer overflow, and am trying to establish
whether the bug is in GCC, my hack to GCC, or the C code.

P.S.  A cryptic mailing list posting at
http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=59163+61801+/usr/loc
al/www/db/text/2001/freebsd-ia64/20011209.freebsd-ia64
may be related to this problem.

Thanks,
-- 
Chris



More information about the Gcc-help mailing list