On Wed, Apr 20, 2011 at 07:31, Jerry DeLisle <jvdeli...@frontier.com> wrote: > Use asm volatile to mark temp variable, avoiding optimization errors.
I wonder, would it make sense to compile the entire IO library with -fexcess-precision=standard in order to avoid further similar issues? This would keep the code free from tricks like this patch, and not reduce performance on targets with sane floating point (e.g. x86_64). That being said, we do so little floating point calculations in the IO library that I don't think the performance hit either from forcing this var to memory or from -fexcess-precision=standard would be noticeable. I say IO library because for other things like some intrinsic functions (matmul, ...) we probably don't want to reduce performance in the name of avoiding excess precision. -- Janne Blomqvist