*BSD News Article 2863


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!news.hawaii.edu!ames!olivea!uunet!mcsun!uknet!axion!micromuse!hilly!peter
From: peter@micromuse.co.uk (Peter Galbavy)
Newsgroups: comp.unix.bsd
Subject: Re: 386BSD: Anyone using gcc-2.x on 0.1?
Message-ID: <peter.712488976@hilly>
Date: 30 Jul 92 09:36:16 GMT
References: <1992Jul29.155631.21213@thyme.jpl.nasa.gov> <1992Jul29.172744.1118@ms.uky.edu>
Organization: MicroMuse Limited, London, England.
Lines: 49

soward@slow.inslab.uky.edu (John Soward) writes:

>I tried to compile it (gcc2.2.2) but ran into a snag...then I found the  
>binaries and patches on sonata.cc.purdue.edu...these seem to work...
>I am currently trying to re-compile the Kernel with it...A few cahnges need to  
>be made it looks like...I am currently stuck on src/i386/isa/npx.c:129
>with: " impossible register constraint in `asm' " but I'm sure it's just some  
>slight change from 1.39...


Changes to kernel code (from memory, I am at work - BSD system at home):

1   Change in ../../i386/*/npx.c the lines it comlains about to use "m"
    instead of "g" - you will see what I mean when you look at it.

2   Errors also include the warning about incompatible declarations (whatever)
    of strlen() in ../../sys/systm.h (comment it out - works ok).

    ../../i386/??/math_emulate.c line 614 need changing from:

	tmp = & (long)REG(...)

    to

	tmp = & REG(...)

    as casting makes gcc-2.2.2 & operator barf (not too suprising really).

3   ../../i386/??/pccons.c needs "=" signs added to array declarations. Try
    compiling it and you will see the line numbers. Also there are a couple
    of comments like "?* NNN */" the need the "?" changed to "/" (this may
    be bit rot :-)

What else ? I can't remember...

*but* I have rebuilt the kernel using gcc-2.2.2 and it is *bigger* binary
wise than the one built using 1.39, and of course doesn't work :-(

gcc-2.2.2 carries around lots of redundent c++ stuff, and makes a call
to ___main (__main in libgcc2.c) which does c++ stuff. I have tried using
-fno-builtin to no avail. When I get the portable up and running (soon,
please :-) I will be able to investigate further, by which time the patches
should be out :-) :-)

Sigh. One day.
-- 
Peter Galbavy
Tech Support, Micromuse Ltd
Phone: +44 71 352 7774		E-Mail: P.Galbavy@micromuse.co.uk