Subject: Re: GCC 2.8.0
To: Rob Mohr <robm@gemstone.com>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 03/18/1998 12:23:54
>Since NetBSDs native compiler is GCC, how does one go about getting a
>stage 1 compiler built using the most recent sources available (2.8.0)?

Actually, netbsd's native compiler is `whatever is in the tree'.
That's currently 2.7.2.2 with (a) some changes to the various configs,
to work better with versions of GNU ld that post-date the 2.7.0 release,
and (b) various bugfixes, from egcs, and/or 2.8.0, and/or NetBSD.


>The documentation that ships with the source states that you should not
>use GCC to create the stage 1 compiler as it will cause some sort of
>recursive reference in a library that is created. 

The documentation is misleading. It's referring to things like
software emulation of floating point. If you have, say, an old sun3
with no FP hardware, and you want to use the FP emulation libraries
supplied with GCC, those emulation libraries need to be compiled with
a compiler capable of emitting `real' FP code.  ONce upon a time,
those libraries did the moral equivalent of:

      double adddf2(double a, double b)  { return a + b; }

And then gcc emitted calls to 'adddf2' to add two doubles.

>or am I stuck using the version of GCC
>shipped with the current release of NetBSD?  Thanks in advance for the

That's what you should use. It *is* `cc' on these systems, after all.
So you're not really "stuck".