optimization/7175: Calculation yields different results for version optimized with -O2

Michael Veksler veksler@il.ibm.com
Sat Aug 10 02:06:00 GMT 2002


The following reply was made to PR optimization/7175; it has been noted by GNATS.

From: Michael Veksler <veksler@il.ibm.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
   nobody@gcc.gnu.org, weber@informatik.uni-kl.de
Cc:  
Subject: Re: optimization/7175: Calculation yields different results for version
 optimized with -O2
Date: Sat, 10 Aug 2002 06:29:05 +0300

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7175
 
 The moment you will add at the beginning of your main():
   fpu_control_t fpu_bits;
   _FPU_GETCW(fpu_bits);
   fpu_bits &= ~_FPU_EXTENDED;
   fpu_bits |= _FPU_DOUBLE;
   _FPU_SETCW(fpu_bits);
 
 Assuming you init "res" to zeros, you are goint to get a consistent
 result.
 This probably means that this PR is basically the same as PR/6914.
 



More information about the Gcc-prs mailing list