From owner-cvs-all@FreeBSD.ORG Fri Dec 19 13:10:07 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC89E16A4CE; Fri, 19 Dec 2003 13:10:07 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA0F343D36; Fri, 19 Dec 2003 13:10:03 -0800 (PST) (envelope-from peter@evilpete.dyndns.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id AC50E2A8DA; Fri, 19 Dec 2003 13:10:03 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id 736C62C1AC; Fri, 19 Dec 2003 13:10:03 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.12.10/8.12.10) with ESMTP id hBJL9x7n023883; Fri, 19 Dec 2003 13:09:59 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.12.10/8.12.10/Submit) id hBJL9xZ2023882; Fri, 19 Dec 2003 13:09:59 -0800 (PST) (envelope-from peter) From: Peter Wemm To: Marcel Moolenaar , Peter Wemm Date: Fri, 19 Dec 2003 13:09:59 -0800 User-Agent: KMail/1.5.4 References: <200312151025.hBFAPIuc084643@repoman.freebsd.org> <20031219144258.GA82370@ns1.xcllnt.net> In-Reply-To: <20031219144258.GA82370@ns1.xcllnt.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312191309.59556.peter@wemm.org> cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys _null.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2003 21:10:07 -0000 On Friday 19 December 2003 06:42 am, Marcel Moolenaar wrote: > On Mon, Dec 15, 2003 at 02:25:18AM -0800, Peter Wemm wrote: > > peter 2003/12/15 02:25:18 PST > > > > FreeBSD src repository > > > > Modified files: > > sys/sys _null.h > > Log: > > amd64 doesn't define __LP64__ in the compiler, but it definately > > needs this definition. It fixes gnome for starters. I haven't > > tried *emacs yet. Like IA64, amd64 uses registers for the first few > > arguments and then the stack for the rest. This means the 64 bit > > promotion of the NULL (0) value is lost and its just pushed on as > > an 'int' in a varargs call. > > Odd. I swear I tested amd64 and found that the promotion was still > there by virtue of the generated code. I guess not... It does, most of the time. gcc does some very funny things at times. The varargs stuff seems to be really good at tempting fate. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5