On Mon, Feb 28, 2005 at 10:00:42AM +1100, Benjamin Herrenschmidt wrote: > Oh, and there are gcc version that will refuse -mcpu=power4 -maltivec so > I can't even use -mcpu=power4 for the whole kernel and -maltivec just > for the file containing the raid6 code
I guess what you mean here it that the -maltivec option is ignored when gcc is given "-mcpu=power4 -maltivec". That's true. It's a result of handling -mcpu in OVERRIDE_OPTIONS. This means the -mcpu option is processed after other options, so you effectively have your command line permuted. A long time ago I made a fix for a similar problem with -msoft-float, and noted that it should be extended to other options. See http://gcc.gnu.org/ml/gcc-patches/2004-03/msg00688.html That is still the best bandaid fix, IMO. The proper fix is to rewrite option processing to only use the override hook for things that really do need to override other options. -- Alan Modra IBM OzLabs - Linux Technology Centre