Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2003 06:42:58 -0800
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Peter Wemm <peter@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys _null.h
Message-ID:  <20031219144258.GA82370@ns1.xcllnt.net>
In-Reply-To: <200312151025.hBFAPIuc084643@repoman.freebsd.org>
References:  <200312151025.hBFAPIuc084643@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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...

>   Marcel: thanks a million for finding this!

No problem.

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031219144258.GA82370>