Subject: egcs 1.0.2 and netbsd.
To: None <tech-toolchain@NetBSD.ORG>
From: matthew green <>
List: tech-toolchain
Date: 03/25/1998 16:25:49
hi folks.

after mycroft hinted he'd like it if i put egcs into NetBSD, i've done
this and got the entire tree working with it on the sparc.  currently,
i have this:
	- egcs-1.0.2 is to be `cvs import'ed into src/gnu/dist, and the
	  few conflicting files resolved.
	- src/gnu/usr.bin/egcs has a bunch of subdirs and Makefile's
	  using .PATH to build the sources (similar to how gdb works).
	- src/gnu/lib/libstdc++ does the above for libstdc++ (taken from
	  the egcs version, _not_ libg++).  note that using egcs will
	  also mean _not_ supporting libg++, but only libstdc++.
	- src/gnu/{lib/libg++,usr.bin/gcc} are not built for the sparc.
	- a bunch of new warnings fixed all throughout /usr/src.

there remains one problem.  the kernel has main looking like:
	void main(void *framep);
which egcs warngs about.  there _is_ a -Wno-main, but this does not get
rid of the "main does not return int" warning, as the source to egcs
_specifically_ warns this even if -Wno-main is in effect -- ie, it is
broken on purpose, IMO.  i will be disabling this warning in our tree.

i will be importing egcs on the weekend, baring any objections

i will _not_ be changing any default environments (ie, for the time
being, everyone including the sparc will continue to use gcc), but
will leave this upto the port masters.  i believe all the a.out ports
should be able to build egcs with what i have, but i obviously have
not tested this :)  i can build egcs on the pmax port but it does not
produce useful objects (yet).

i don't plan on forgetting the recent libobjc fix :)