*BSD News Article 2391


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!uunet!mcsun!uknet!axion!micromuse!hilly!peter
From: peter@micromuse.co.uk (Peter Galbavy)
Newsgroups: comp.unix.bsd
Subject: Building GCC-2.2.2 on 386BSD (was Re: Jolitz 386BSD-0.1 -- floating point perform)
Message-ID: <peter.711964807@hilly>
Date: 24 Jul 92 08:00:07 GMT
References: <l6qc51INN1gu@neuro.usc.edu> <1992Jul22.152854.27730@nrao.edu> <1992Jul23.010341.22292@klaava.Helsinki.FI>
Organization: MicroMuse Limited, London, England.
Lines: 68

torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds) writes:

>In article <1992Jul22.152854.27730@nrao.edu> cflatter@nrao.edu writes:
>> [ deleted ]  Is anyone working on porting gcc 2.x to 386BSD? Come to
>>think of it, is there anything that needs to be done to do this (wouldn't
>>the BSD/386 configuration work)?

>One thing that migth be a problem with porting gcc-2.2.2 to 386BSD is
>that gcc-2.2.2 has added the 'fsqrt' command to the list of floating
>point instructions that gcc can create code for - and I don't know if
>the 386bsd math emulator emulates that particular command yet.  I've
>already written the code (it's in linux), but it wasn't available back
>when people ported the emulator to 386bsd. 

I haven't got that far :-(

I have been trying to get gcc-2.2.2 going, but my disk is so slooooow...
The thing I have noticed is the the files "gvarargs.h" needs a small hack:
change the ifdefs against "_ANSI_H" to test for "_ANSI_H_" notice the last
underscore, since this is what is defined in <machine/ansi.h>.

There was still a problem with compiling "libgcc2.a" (something about
illegal characters in lines 41 and 43 (or 47 ?) sigh, I can't remember.

I have x-posted this to gnu.gcc.help for informational purposes (and
maybe help from you guys :-).
--
Peter Galbavy
Tech Support, Micromuse Ltd
Phone: +44 71 352 7774		E-Mail: P.Galbavy@micromuse.co.uk