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, committed] PR48602 Fix optimization issue


On Wed, Apr 20, 2011 at 07:31, Jerry DeLisle <jvdelisle@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


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