[llvm-dev] [cfe-dev] Calling function from non-default floating-point environment

John McCall via llvm-dev llvm-dev at lists.llvm.org
Thu Jan 9 09:10:34 PST 2020


On 9 Jan 2020, at 11:11, Serge Pavlov wrote:
> Thank you very much for the discussion.
>
> This viewpoint on mixed FP environment simplifies development. Of course,
> leaving user without compiler support is not good thing. But in future we
> can invent mechanisms to alleviate the problem. For instance, a
> command-line option that put save/restore call around functions, for which
> FPEnv requirements are unknown. It depends on what problems will actually
> arise in practical use of this feature.

To do this, we would need a new pragma with its own semantics.
I find it unlikely that we would pursue that.  I think it’d be
much more palatable to add a static analysis that warned about
code that appears to not be following the standard recommended
conventions.

John.


More information about the llvm-dev mailing list