Re: [RFC] x86: Disable traditional FPU instructions too

From: H. Peter Anvin
Date: Mon Jan 27 2014 - 12:17:12 EST


On 01/27/2014 09:01 AM, Andi Kleen wrote:
> Jiri Kosina <jkosina@xxxxxxx> writes:
>
>> On Mon, 27 Jan 2014, H. Peter Anvin wrote:
>>
>>> I don't think it'd hurt... although I think the above pretty much
>>> requires that the code contain actual floating-point types to ever be
>>> generated.
>>
>> Unfortunately using float-typed constants (such as 1EexpL) are enough for
>> this to happen.
>
> checkpatch would seem to be the right place to check for this?
>

Ideally gcc should have a -no-float option...

-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/