Date: Mon, 15 Dec 2003 02:25:18 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys _null.h Message-ID: <200312151025.hBFAPIuc084643@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. When the consumer walks the list and expects to pull off void * pointers via va_arg, then all hell breaks loose. Marcel: thanks a million for finding this! Revision Changes Path 1.2 +1 -1 src/sys/sys/_null.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312151025.hBFAPIuc084643>