From owner-freebsd-current Sun Mar 2 15: 8: 9 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27B2E37B401 for ; Sun, 2 Mar 2003 15:08:08 -0800 (PST) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6C5743F93 for ; Sun, 2 Mar 2003 15:08:06 -0800 (PST) (envelope-from rehsack@liwing.de) Received: (qmail 38769 invoked from network); 2 Mar 2003 23:08:04 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 2 Mar 2003 23:08:04 -0000 Message-ID: <3E628ED4.9030203@liwing.de> Date: Mon, 03 Mar 2003 00:08:04 +0100 From: Jens Rehsack Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Murray Cc: John Polstra , current@FreeBSD.ORG Subject: Re: PATCH: type errors in src-tree References: <200303022056.h22KuDIg055497@grimreaper.grondar.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Mark Murray wrote: > John Polstra writes: > >>In article , >>Dag-Erling Smorgrav wrote: >> >>>This is wrong. caddr_t should be uniersally replaced with void *. >> >>Not quite. There is (or at least used to be) a lot of code that >>assumed you could do address arithmetic on a caddr_t. You can't do >>that on a void *, at least not in ANSI C. I think gcc lets you do >>it, but it's an extension. > > > As I have discovered. I specifically looked for this, and my misreading > of the spec is now clear. :-) Yes, but relying on this during fixing out caddr_t may break use of other compilers. Now, that OpenWatcom is released, the FreeBSd port of it should follow. And maybe someone will try to compile the kernel and world with it. If that would work, this would be great, because the watcom compiler generates much better code than gcc does, even than gcc -O3 (and all known optimizations on). So long, Jens To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message