From owner-cvs-all Fri Nov 1 11:31:12 2002 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 3785B37B401 for ; Fri, 1 Nov 2002 11:31:09 -0800 (PST) Received: from nic.upatras.gr (nic.upatras.gr [150.140.129.30]) by mx1.FreeBSD.org (Postfix) with SMTP id C079043EAA for ; Fri, 1 Nov 2002 11:31:06 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 11026 invoked from network); 1 Nov 2002 19:23:53 -0000 Received: from upnet-dialinpool-22.upnet.gr (HELO gray.sea.gr) (root@150.140.128.232) by nic.upatras.gr with SMTP; 1 Nov 2002 19:23:53 -0000 Received: from gray.sea.gr (gray [127.0.0.1]) by gray.sea.gr (8.12.6/8.12.6) with ESMTP id gA1JVQY6089915; Fri, 1 Nov 2002 21:31:28 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by gray.sea.gr (8.12.6/8.12.6/Submit) id gA1FxLn6045903; Fri, 1 Nov 2002 17:59:21 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 1 Nov 2002 17:59:21 +0200 From: Giorgos Keramidas To: Maxime Henrion Cc: committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/contrib/gcc c-format.c src/sys/ddb db_examine.c src/sys/kern subr_prf.c Message-ID: <20021101155921.GB35716@gray.sea.gr> References: <200210251941.g9PJfWxg023702@repoman.freebsd.org> <20021025194731.GS26605@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021025194731.GS26605@elvis.mu.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-10-25 12:47, Maxime Henrion wrote: > Maxime Henrion wrote: > > mux 2002/10/25 12:41:32 PDT > > > > Modified files: > > contrib/gcc c-format.c > > sys/ddb db_examine.c > > sys/kern subr_prf.c > > Log: > > - Rename the DDB specific %z printf format to %y. > > - Make DDB use %y instead of %z. > > - Teach GCC about %y. > > - Implement support for the C99 %z format modifier. > > If you compile DDB into your kernel, you will have to recompile gcc so > that it doesn't bitch about %y. Either that or use "make WERROR=". I had a somewhat old userland and kernel running at home, which I compiled from a checkout of -D '2002/09/20 16:00:00 UTC'. To let a fairly recent current build world and kernel I used a slightly different path, since running a newer userland without a new kernel was not possible because of the recent sigaction changes. I locally backed out only the change of db_examine.c and run buildworld and buildkernel with the old %z format. I also had to back out change 1.6 to ldscript.i386 to make sure that kernel.debug would link with my old toolchain and allow me to boot the new kernel and install the new userland. Then when the new gcc was in place, I buildkernel once more, by backing out the backout. That worked like a charm. The equivalent can be accomplished by building a kernel that doesn't include DDB, of course; I just thought I'd mention what I did. Giorgos. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message