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]
Other format: [Raw text]

Re: jFP religious wars


Zack Weinberg wrote:
"R. D. Flowers" <rd@chatta.us> writes:


would not some flag like -fp-pedantic (or however to fit in the
namespace) be a good idea (for both decent sets of folks: the
fast-and-a-little-dirty and the clean-and-a-little-slow people)?


Maybe. What would it do?

I don't think this would work. There is nothing "pedantic" in the carefully formulated rules that make it easier/possible to write accurate floating-point code. It is far better to have the existing flags for -ffast-math etc, which clearly warn that the resulting semantics may be unreliable.

The use of -pedantic to cover little used language features
or rules is one thing, the use of a flag like this to give
incorrect semantics.


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