From owner-freebsd-ia64 Sat Jan 18 14:35:17 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D4CC37B401; Sat, 18 Jan 2003 14:35:16 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6874043ED8; Sat, 18 Jan 2003 14:35:15 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h0IMZ9MW007624; Sat, 18 Jan 2003 14:35:09 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id h0IMZDti000629; Sat, 18 Jan 2003 14:35:13 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6/Submit) id h0IMZCEn000628; Sat, 18 Jan 2003 14:35:12 -0800 (PST) (envelope-from marcel) Date: Sat, 18 Jan 2003 14:35:12 -0800 From: Marcel Moolenaar To: "David O'Brien" Cc: Kris Kennaway , ia64@FreeBSD.ORG, anholt@FreeBSD.ORG Subject: Re: XFree86-libraries fails on ia64 Message-ID: <20030118223512.GA590@dhcp01.pn.xcllnt.net> References: <20030116012828.GA27790@rot13.obsecurity.org> <20030116014854.GA22020@dhcp01.pn.xcllnt.net> <20030118215524.GF70151@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030118215524.GF70151@dragon.nuxi.com> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Jan 18, 2003 at 01:55:24PM -0800, David O'Brien wrote: > On Wed, Jan 15, 2003 at 05:48:54PM -0800, Marcel Moolenaar wrote: > > Alternative 1: > > --- extras/FreeType/lib/ttcalc.c.orig Sat Feb 12 21:03:51 2000 > > +++ extras/FreeType/lib/ttcalc.c Mon Dec 2 00:39:32 2002 > > @@ -84,7 +84,7 @@ > > - z = (unsigned INT64)z >> 1; > > + z = (unsigned long long)z >> 1; > > > Alternative 2: > > --- extras/FreeType/lib/ttcalc.c.orig Sat Feb 12 21:03:51 2000 > > +++ extras/FreeType/lib/ttcalc.c Thu Dec 5 17:56:25 2002 > > @@ -84,7 +84,11 @@ > > +#if defined(__ia64__) > > + z = (unsigned long)z >> 1; > > +#else > > z = (unsigned INT64)z >> 1; > > +#endif > > > This looks like a total hack (at first glance). Why isn't INT64 usable? > Is there a missing ia64 case in the definition of it? The problem is that gcc doesn't allow modifying typedefs in casts. INT64 does exist, but unsigned INT64 is not accepted as a valid cast. Try: typedef long long LL; int main() { LL s = 2; unsigned long long u = (unsigned LL)s; return 0; } -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message