public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* "#define HOST_WIDE_INT long long" OK for ia64-elf cross?
@ 2002-01-06 20:18 Cristan Szmajda
  0 siblings, 0 replies; only message in thread
From: Cristan Szmajda @ 2002-01-06 20:18 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-07  4:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-06 20:18 "#define HOST_WIDE_INT long long" OK for ia64-elf cross? Cristan Szmajda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).