From owner-freebsd-alpha Fri Apr 16 11:16:10 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 49068159C1 for ; Fri, 16 Apr 1999 11:15:49 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.1/8.9.1) with ESMTP id OAA13346; Fri, 16 Apr 1999 14:13:18 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id OAA07208; Fri, 16 Apr 1999 14:13:13 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 16 Apr 1999 14:13:12 -0400 (EDT) To: mjacob@feral.com Cc: "David O'Brien" , Mike Smith , alpha@FreeBSD.ORG Subject: Re: egcs ready for alpha? In-Reply-To: References: <14102.12407.996679.381089@grasshopper.cs.duke.edu> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14103.31933.454041.289218@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matthew Jacob writes: > > The only problem I've seen that could be a show-stopper for you is the > > fact that /sbin/dump produces corrupt dumps when built with egcs. You > > might want to keep a dump binary laying around. > > > > I'm not working on this (my plate it far too full right now) and I'd > > very much appreciate it if somebody could look into it.. > > My compiler chops are about 17 years old- I've done little more than > build gcc over the last decade and don't know the internals.. but here's > the line that's a culprit and a temp fix (at least based upon trivial > tests- the output records were garbage and this seems to correct that)... Excellent! Thanks for finding this! > Who owns the toolchain? David O'Brien -- I'm CC'ing this to him. > Index: tape.c > =================================================================== > RCS file: /home/ncvs/src/sbin/dump/tape.c,v > retrieving revision 1.10 > diff -u -r1.10 tape.c > --- tape.c 1998/09/15 10:25:50 1.10 > +++ tape.c 1999/04/16 17:51:20 > @@ -174,7 +174,11 @@ > > slp->req[trecno].dblk = (daddr_t)0; > slp->req[trecno].count = 1; > +#if 0 > *(union u_spcl *)(*(nextblock)++) = *(union u_spcl *)dp; > +#else > + bcopy(dp, *(nextblock)++, sizeof (union u_spcl)); > +#endif > if (isspcl) > lastspclrec = spcl.c_tapea; > trecno++; > Cheers, Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message