(I failed to send this email out before the one containing a corrected
patch.)

>> +             ;; Disable unsupported optimization flags on MIPS64
>> +             ,@(if (string-prefix? "mips64" (or (%current-target-system)
>> +                                                (%current-system)))
>> +                   '("OPTIMIZATIONS=-ffast-math -fomit-frame-pointer -O3")
>> +                   '()))
>
> Can you tell what would happen on ARM systems, or other systems?
> Depending on the answer to that question, it might be better to invert
> the conditional and override OPTIMIZATIONS on any non-Intel system.

I think you are right.  The default OPTIMIZATIONS (according to
common.mak) are

    OPTIMIZATIONS ?= -msse -msse2 -mfpmath=sse -ffast-math \
      -fomit-frame-pointer -O3 -fno-finite-math-only

and I think that at least the first three are only valid for x86.


Reply via email to