This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: What is acceptable for -ffast-math? (Was: associative law in combine)


On Mon, Jul 30, 2001 at 09:01:17AM -0400, dewar@gnat.com wrote:
> It certainly would be interesting to hear from someone with extensive
> experience in writing numerical codes supporting Linus' position (I have
> that extensive experience, but for sure I do not support the position that
> a compiler should by default do completely different things from what it
> is told.

His position is even worse: the compiler should abandon well specified
semantics in favor of less predictable ones (where what result you get
depends on which optimizations were applied).

When people suggest similar things regarding inlining and assembly
fragments, which certainly are understood by far less than 1% of the
users, Linus flames the list for breaking his code which depends on
very subtle aspects of the behavior of those features.

So hopefully he'll reverse his position, and take a position
consistent with his previous positions: optimization should not
transform working code into code that produces different results,
no matter how fast it does so.

-Tim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]