[Bug fortran/78062] sinus and cosinus fails

2016-11-03 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78062

--- Comment #5 from Andreas Schwab  ---
This is most likely .

[Bug fortran/78062] sinus and cosinus fails

2016-11-03 Thread informatica at ecm dot ub.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78062

--- Comment #4 from Miquel  ---
Sorry for the delay.
fortran version:
GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609

Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu



With the -O2 modifier it works, but without it, it produces 

~# ./a.out 
 -0.99440605160172935  -0.99440605160172935

[Bug fortran/78062] sinus and cosinus fails

2016-11-02 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78062

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #3 from Dominique d'Humieres  ---
No feedback. Closing as WORKSFORME.

[Bug fortran/78062] sinus and cosinus fails

2016-10-30 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78062

--- Comment #2 from Dominique d'Humieres  ---
Works for me too. Without feedback this PR will be closed as WORKSFORME.

[Bug fortran/78062] sinus and cosinus fails

2016-10-21 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78062

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2016-10-21
 CC||marxin at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Well, running the code snippet with all GCC releases I have (and all
optimizations levels), I can see:

$ gfortran pr78062.f -O2
$ ./a.out
 -0.10562482917315752  -0.99440605160172935 

May I ask you what's your target and version of GCC?