------- Comment #5 from pinskia at gmail dot com  2008-09-06 17:56 -------
Subject: Re:  wrong-code on i486-linux-gnu with -O[12], -O0 works



Sent from my iPhone

On Sep 6, 2008, at 10:42, "niklaus at gmail dot com" <[EMAIL PROTECTED] 
 > wrote:

>
>
> ------- Comment #4 from niklaus at gmail dot com  2008-09-06 17:42  
> -------
> On the below version of gcc on cygwin (winXP SP3) i don't have any  
> problems
> with optimization on or off. They produce consistent correct result.  
> Why is it
> a  problem with linux ? or am i doing something wrong.


Because on x86 gnu/Linux, the precision is set to 80bits rather than  
64bit like it is on windows.
>
>
> I tried gcc -mfpmath=387  a.c -O2 and without -O2 , still the same  
> correct
> results on both.
>
> Even with -ffloat-store . Is it glibc ?
>
> $ gcc -v
> Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
> Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/ 
> configure
> --verbose --prefix=/usr -
> -exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/ 
> usr/lib
> --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-languages=c,ada,c+ 
> +,d,f77,pascal,java,objc
> --enable-nls --without
> -included-gettext --enable-version-specific-runtime-libs --without-x
> --enable-libgcj --disable-java-
> awt --with-system-zlib --enable-interpreter --disable-libgcj-debug
> --enable-threads=posix --enable-j
> ava-gc=boehm --disable-win32-registry --enable-sjlj-exceptions
> --enable-hash-synchronization --enabl
> e-libstdcxx-debug
> Thread model: posix
> gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
>
> $
>
>
> -- 
>
> niklaus at gmail dot com changed:
>
>           What    |Removed                     |Added
> --- 
> --- 
> ----------------------------------------------------------------------
>                 CC|                            |niklaus at gmail dot  
> com
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37390
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37390

Reply via email to