re PR libfortran/32611 (Print sign of negative zero)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 15 Jul 2007 16:26:22 +0000 (16:26 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 15 Jul 2007 16:26:22 +0000 (16:26 +0000)
commit2bb6de3a7e8d27b8f7ea7139fbee5f33c32bf3e5
tree5dd0bb4b6a1ee0a04fd08df75bf78b4ef75d74d7
parent639d3040d458f520302f700c5bcc51412c9b47b1
re PR libfortran/32611 (Print sign of negative zero)

2007-07-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
    Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

PR fortran/32611
* runtime/compile_options.c (set_std): Remove.
(set_options): New function.
(init_compile_options): Add initialization for -fsign-zero option.
* gfortran.map (GFORTRAN_1.0): Rename _gfortran_set_std into
_gfortran_set_options.
* libgfortran.h (compile_options_t): Add sign_zero field.
* io/write.c (output_float): Use the sign bit of the value to determine
if a negative sign should be emitted for zero values.  Do not emit the
negative sign for zero if -fno-sign-zero was set during compile.

Co-Authored-By: Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
From-SVN: r126654
libgfortran/ChangeLog
libgfortran/gfortran.map
libgfortran/io/write.c
libgfortran/libgfortran.h
libgfortran/runtime/compile_options.c