https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94852

--- Comment #4 from Ivan Sorokin <vanyacpp at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> @item -ffloat-store
> @opindex ffloat-store
> Do not store floating-point variables in registers, and inhibit other
> options that might change whether a floating-point value is taken from a
> register or memory.
> 
> I think it does what it says?

Yes, the behavior of the compiler and the documentation matches very well. The
compiler works as intended. My report is not about a bug, but about a possible
improvement.

If ignoring or implementing a warning is considered undesirable, I would
suggest expanding the documentation by clarifying the interaction between
-ffloat-store and -mfpmath=sse.

Something like this in the documentation would help: "If used together with
-mfpmath=sse, -ffloat-store doesn't change the results of floating point
operations. The only effect it has is severely pessimizing the generated code."

Reply via email to