This is the mail archive of the gcc-patches@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: [PATCH] Optimize abs(x) < 0.0


Brad Lucier <lucier@math.purdue.edu> writes:

[...]

| > The proposed transformation doesn't preserve semantics in presence
| > of signaling NaNs. I suggest it to be applied only either unsafe-math
| > or say -fno-nan-values or whatever.
| 
| There is an option -fno-trapping-math that tells the compiler that
| the libraries are set up to do no trapping of floating-point arithmetic;
| perhaps the transformation should be predicated on this flag.

That is indeed a good suggestion.  Roger is working on a flag
-fsignaling-nan, maybe be they could be combined, say
-fno-trapping-math implying -fno-signaling-nan?

-- Gaby


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