This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/78386] Optimization -O2 and higher cause math inconsistency


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78386

--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Wed, 16 Nov 2016, pinskia at gcc dot gnu.org wrote:

> Most likely the use of fma.

Which applies with current x86_64 just as it does with powerpc.  It should 
be possible to reduce such an issue to a single function, with a specified 
argument for which that function returns different results with different 
optimization options.  If it's an fma issue, using -ffp-contract=off 
should eliminate the difference between optimization levels.

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