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]

Re: optimization/9052: in C code, "if" statement fails to execute if optimized


> Adding -ffloat-store will probably also make the "misbehaviour" go away.

It does.

> GCC is almost certainly using the register result from the current
> iteration to compare with the memory result from an earlier iteration.
> Since the register result has excess precision the compare for equality
> fails.  That's not a bug, it's just the FP works on the X86.
>
> So in summary, almost certainly "not a bug".

I fully concur. I think the PR can be closed.

-- 
Eric Botcazou


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