From owner-freebsd-current Thu Mar 20 8:36:57 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 2ACDC37B401 for ; Thu, 20 Mar 2003 08:36:56 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C802F43F75 for ; Thu, 20 Mar 2003 08:36:52 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id DAA31068; Fri, 21 Mar 2003 03:36:44 +1100 Date: Fri, 21 Mar 2003 03:36:43 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: current@FreeBSD.ORG Cc: alasir@supereva.it Subject: Re: buildkernel and gcc2 In-Reply-To: <20030320033402.GA75080@dragon.nuxi.com> Message-ID: <20030321032434.U13596@gamplex.bde.org> References: <20030320032113.71826.qmail@web21504.mail.yahoo.com> <20030320033402.GA75080@dragon.nuxi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Wed, 19 Mar 2003, David O'Brien wrote: > On Thu, Mar 20, 2003 at 03:21:13AM +0000, RMH wrote: > > I have to note that currently it isn't really possible to compile > > -CURRENT by GCC 2.95.x in the way it has to be. Buildkernel is > > ... Building -current requires a -current compiler. > Huh?? What do you mean "in the way it has to be"? We purposely upgraded > from GCC 2.95.x to 3.2.x and part of that upgrade gave us C99 features. > > Second problem is periods in two macros of sys/eventhandler.h, > > that broke depend: > > > > #define EVENTHANDLER_FAST_INVOKE(name, ...) > > #define EVENTHANDLER_INVOKE(name, ...) > > > > Might be fixed in the way like: > > > > #define EVENTHANDLER_FAST_INVOKE(name) > > #define EVENTHANDLER_INVOKE(name, arg1, arg2, arg3) > > We can certainly put in a #ifdef detection on the GCC version. Please > submit a patch for this and the other nits you point out. Please don't. Complications to support the old version would defeat the point of purposely regrading from GCC 2.95.x to 3.2.x. But I'd be happy if this wer fixed this by not using variadic macros anywhere. Only the ". tmpstk" syntax error and the macro that produce it are just wrong (RELENG4 and -current have a differently wrong vewrsions that happen to be accepted by gcc-2 and gcc-3, respectively). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message