From owner-freebsd-current Mon Mar 1 12:48:28 1999 Delivered-To: freebsd-current@freebsd.org Received: from iquest3.iquest.net (iquest3.iquest.net [209.43.20.203]) by hub.freebsd.org (Postfix) with SMTP id 92234153C0 for ; Mon, 1 Mar 1999 12:48:26 -0800 (PST) (envelope-from toor@y.dyson.net) Received: (qmail 23737 invoked from network); 1 Mar 1999 20:47:49 -0000 Received: from dyson.iquest.net (HELO y.dyson.net) (198.70.144.127) by 209.43.20.203 with SMTP; 1 Mar 1999 20:47:49 -0000 Received: (from toor@localhost) by y.dyson.net (8.9.1/8.9.1) id PAA24587; Mon, 1 Mar 1999 15:46:25 -0500 (EST) Message-Id: <199903012046.PAA24587@y.dyson.net> Subject: Re: gcc In-Reply-To: <199903011715.JAA48969@vashon.polstra.com> from John Polstra at "Mar 1, 99 09:15:03 am" To: jdp@polstra.com (John Polstra) Date: Mon, 1 Mar 1999 15:46:25 -0500 (EST) Cc: obrien@NUXI.com, current@freebsd.org From: "John S. Dyson" Reply-To: dyson@iquest.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Polstra said: > In article <19990228152909.E2170@relay.nuxi.com>, > David O'Brien wrote: > > > I keep on hearing about how we're losing because we don't have the 3 > > > month old latest feature > > > > With EGCS the issue isn't having the latest 3 mo. feature, but we have a > > totally BROKEN C++ compiler. > > Yes. We desperately need to upgrade our compiler, and egcs looks > like it's definitely the way to go. > > > What I have won't build kernels yet. I could hack our system Makefiles > > to use different compile options, but I don't like that approach. So > > I'm working on adding our compiler flags and such. > > Hang on. Others have reported success building kernels with egcs. > But even if there are problems, don't jump to the conclusion that > they are caused by compiler bugs. Linux also had problems building > working kernels at first, but the problems turned out to be caused by > incorrect clobber specs in "asm" statements. Such errors have also > been found in the FreeBSD kernel. Some of them have been fixed, but > maybe not all of them. In any case, the problems should be fixed at > their source, not kludged around in the compiler. > I can generally build a kernel with EGCS, if I change how the .text and .data are laid out for initialized data. It seems that the initialization code makes assumptions about the order or layout of the initialization data. Once the stuff is made to act more like the version of GCC that FreeBSD uses, the kernel will most often build and work. -- John | Never try to teach a pig to sing, dyson@iquest.net | it makes one look stupid jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message