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] Perform constant folding of math builtins


Roger Sayle <roger@eyesopen.com> writes:

| My experience is that many of the FP precision related bugs misposted
| to GNATS, e.g. PR other/5574, are due to misunderstandings of floating
| point arithmetic, rather then the results of dubious optimizations.

Mine differs.  We just had, last month, a lenghty investigation of GCC's
inconsistent use of FP registers on x86 in the French speaking
newsgroup news:fr.comp.lang.c++ -- for example VC++ with various
optimization levels gets the computation right (as do many other
compilers on various plateforms with various optimization flags), only
GCC fails to deliver a sensical result.

That isn't to say that you should not consider your proposed
transformations.  It is just to say that it isn't just a matter of
misunderstandings (or, if misunderstanding there is , it is on GCC
part, IMHO).

-- Gaby


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