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, rfc] PR32172 - Update -funsafe-math-optimizations flag definition


Richard Guenther wrote:
On 6/3/07, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
Thanks for the patch. However in my opinion reordering transformations and
noy obeying parentheses are two different issues: optimizing f+a-f as a is one
thing, optimizing (f+a)-f is another (bad) one.

There is no difference between both cases for gcc.

Internally within the compiler, perhaps. From the user's point of view, however, there is a big difference -- and, since the documentation is for the user, it's important to be clear that the "arbitrary reordering transformations" allowed by -funsafe-math-optimizations include disobeying parentheses.


- Brooks


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