Subject: Re: building shells/mksh with -combine -fwhole-program
To: Blair Sadewitz <>
From: Thorsten Glaser <>
List: tech-pkg
Date: 05/02/2007 18:38:48
Blair Sadewitz dixit:

> This shell's build script already passes all of the code to the
> compiler at once.  I'm not sure which version of gcc started
> supporting this, but with NetBSD-current's gcc 4.1.2 it builds this
> way with no warnings (though I don't think I tried -Wall).  Might it
> be a good idea to add this for

Actually, until and including mksh R29c, the shell's build script
automatically adds this option if it's supported.

>From mksh R29d onwards, it will *not* do it any more because this
gcc option is very buggy and causes errors at least with SuSE and
Redhat's FORTIFY_SOURCE on i386 and Debian on alpha.

I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.		-- Coywolf Qi Hunt