On Mon, 2008-02-18 at 17:21 -0500, David Edelsohn wrote: > >>>>> Janis Johnson writes: > > Janis> I have a patch, written since this thread started, that saves and > Janis> restores AltiVec registers based on TARGET_ALTIVEC instead of > Janis> TARGET_ALTIVEC_ABI. It passes gcc.target/powerpc tests and 176.gcc > Janis> with "-O3 -maltivec -mabi=no-altivec". I'll post that soon and do > Janis> full bootstrap/regtest. > > That is not what -maltivec is suppose to control.
What should it control? I think it should mean to use AltiVec hardware support where possible, which includes saving and restoring AltiVec registers that are used within a function. The only reason I hadn't tried this change before was that I heard that others had tried it without success. This new patch does not affect passing and returning AltiVec types as controlled by -mabi=[no-]altivec. Janis