Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Powerpc signal handler with floating point registers



>>>>> Matt Thomas writes:

>> -msoft-float.

Matt> That seems to be a rather big hammer to smash that fly.  Any other
Matt> way to make moves not use FP?  Allow floating point, but only if
Matt> the program is using floating point types.

        No.  Either you allow the compiler to use the FPU or you don't.
There is no safe and reliable way to implement the policy that you
request.  The request of the compiler ultimately is inconsistent: you are
telling it to enable the the FPU and FPRs, but somehow "know" when you
really want it used.  Expecting DWIM behavior will lead to problems.

        GCC 4.0 will use the FPU less for this type of situation.
However, if the floating point machinery is enabled, there always is a
chance that an optimizing compiler will decide that it is profitable to
use the resource.

David




Home | Main Index | Thread Index | Old Index