From owner-freebsd-current Wed Apr 10 2:20:21 2002 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 6D4EC37B41B for ; Wed, 10 Apr 2002 02:19:49 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g3A9JlYm058238; Wed, 10 Apr 2002 02:19:47 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g3A9IWuU058153; Wed, 10 Apr 2002 02:18:32 -0700 (PDT) Date: Wed, 10 Apr 2002 02:18:32 -0700 From: "David O'Brien" To: Alexander Leidinger Cc: current@FreeBSD.org Subject: Re: libkern/quad.h Message-ID: <20020410021832.A57790@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org References: <200204091458.g39Ewg1T000574@Magelan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200204091458.g39Ewg1T000574@Magelan.Leidinger.net>; from Alexander@Leidinger.net on Tue, Apr 09, 2002 at 04:58:42PM +0200 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Apr 09, 2002 at 04:58:42PM +0200, Alexander Leidinger wrote: > quad.h contains: > ---snip--- > /* > * XXX > * Compensate for gcc 1 vs gcc 2. Gcc 1 defines ?sh?di3's second argument > * as u_quad_t, while gcc 2 correctly uses int. Unfortunately, we still use > * both compilers. > */ > #if __GNUC__ >= 2 > typedef unsigned int qshift_t; > #else > typedef u_quad_t qshift_t; > #endif > ---snip--- > > Is this still valid? Does someone really use gcc 1 to compile FreeBSD? I assume your question stems from trying to use icc. Please wrap this bit [semi]-properly with: #ifdef __GNUC__ #if __GNUC__ >= 2 typedef unsigned int qshift_t; #else typedef u_quad_t qshift_t; #endif #endif You can then put a defintion for #ifdef __IC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message