From 2b6bc4f258a7c3c8b492ac1a654eead47fcc9f4f Mon Sep 17 00:00:00 2001 From: burnus Date: Fri, 27 Mar 2009 21:55:13 +0000 Subject: 2009-03-27 Tobias Burnus * gfortran.h (enum init_local_real.): Add GFC_INIT_REAL_SNAN. (gfc_expr): Add is_snan. * trans-const.c (gfc_conv_mpfr_to_tree): Support SNaN. (gfc_conv_constant_to_tree): Update call to gfc_conv_mpfr_to_tree. * trans-const.h (gfc_conv_mpfr_to_tree): Update prototype. * resolve.c (build_default_init_expr): Update call. * target-memory.c (encode_float): Ditto. * trans-intrinsic.c * (gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod, git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145129 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fortran/invoke.texi | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gcc/fortran/invoke.texi') diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 8e18dd2342c..8138464a4f4 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -169,7 +169,7 @@ and warnings}. -fmax-stack-var-size=@var{n} @gol -fpack-derived -frepack-arrays -fshort-enums -fexternal-blas @gol -fblas-matmul-limit=@var{n} -frecursive -finit-local-zero @gol --finit-integer=@var{n} -finit-real=@var{} @gol +-finit-integer=@var{n} -finit-real=@var{} @gol -finit-logical=@var{} -finit-character=@var{n} -fno-align-commons} @end table @@ -1303,7 +1303,7 @@ on the stack. This flag cannot be used together with @item -finit-local-zero @item -finit-integer=@var{n} -@item -finit-real=@var{} +@item -finit-real=@var{} @item -finit-logical=@var{} @item -finit-character=@var{n} @opindex @code{finit-local-zero} @@ -1317,7 +1317,7 @@ variables to zero, @code{LOGICAL} variables to false, and @code{CHARACTER} variables to a string of null bytes. Finer-grained initialization options are provided by the @option{-finit-integer=@var{n}}, -@option{-finit-real=@var{}} (which also initializes +@option{-finit-real=@var{}} (which also initializes the real and imaginary parts of local @code{COMPLEX} variables), @option{-finit-logical=@var{}}, and @option{-finit-character=@var{n}} (where @var{n} is an ASCII character @@ -1327,7 +1327,10 @@ type variables, nor do they initialize variables that appear in an future releases). Note that the @option{-finit-real=nan} option initializes @code{REAL} -and @code{COMPLEX} variables with a quiet NaN. +and @code{COMPLEX} variables with a quiet NaN. For a signalling NaN +use @option{-finit-real=snan}; note, however, that compile-time +optimizations may convert them into quiet NaN and that trapping +needs to be enabled (e.g. via @option{-ffpe-trap}). @item -falign-commons @opindex @code{falign-commons} -- cgit v1.2.1