aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/invoke.texi
diff options
context:
space:
mode:
authorDaniel Franke <franke.daniel@gmail.com>2010-05-19 12:35:34 -0400
committerDaniel Franke <dfranke@gcc.gnu.org>2010-05-19 12:35:34 -0400
commitdaf8c6f03b7b7ae33e2e8e301d367eb8cce80e5c (patch)
tree64411c68c4c176fc8f0be9929910e6ff86e28d23 /gcc/fortran/invoke.texi
parentf311c3b4a64ad8752904a0261a306bf191e5fcdc (diff)
downloadgcc-daf8c6f03b7b7ae33e2e8e301d367eb8cce80e5c.zip
gcc-daf8c6f03b7b7ae33e2e8e301d367eb8cce80e5c.tar.gz
gcc-daf8c6f03b7b7ae33e2e8e301d367eb8cce80e5c.tar.bz2
re PR fortran/44055 (Warn (-Wconversion*) when converting single to double precision)
gcc/fortran/: 2010-05-19 Daniel Franke <franke.daniel@gmail.com> PR fortran/44055 * lang.opt (Wconversion-extra): New option. * gfortran.h (gfc_option_t): Add warn_conversion_extra. * options.c (gfc_init_options): Disable -Wconversion-extra by default. (set_Wall): Enable -Wconversion. (gfc_handle_option): Set warn_conversion_extra. * intrinsic.c (gfc_convert_type_warn): Ignore kind conditions introduced for -Wconversion if -Wconversion-extra is present. * invoke.texi: Add -Wconversion to -Wall; document new behaviour of -Wconversion; document -Wconversion-extra. gcc/testsuite/: 2010-05-19 Daniel Franke <franke.daniel@gmail.com> PR fortran/44055 * gfortran.dg/c_sizeof_2.f90: Add -Wno-conversion to dg-options; Fixed scope of C_SIZEOF. * gfortran.dg/warn_conversion_2.f90: New. From-SVN: r159586
Diffstat (limited to 'gcc/fortran/invoke.texi')
-rw-r--r--gcc/fortran/invoke.texi13
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi
index 7b3fa6d..1b14cef 100644
--- a/gcc/fortran/invoke.texi
+++ b/gcc/fortran/invoke.texi
@@ -688,8 +688,8 @@ warnings.
@cindex warnings, all
Enables commonly used warning options pertaining to usage that
we recommend avoiding and that we believe are easy to avoid.
-This currently includes @option{-Waliasing},
-@option{-Wampersand}, @option{-Wsurprising}, @option{-Wintrinsics-std},
+This currently includes @option{-Waliasing}, @option{-Wampersand},
+@option{-Wconversion}, @option{-Wsurprising}, @option{-Wintrinsics-std},
@option{-Wno-tabs}, @option{-Wintrinsic-shadow} and @option{-Wline-truncation}.
@item -Waliasing
@@ -746,7 +746,14 @@ Warn when a source code line will be truncated.
@opindex @code{Wconversion}
@cindex warnings, conversion
@cindex conversion
-Warn about implicit conversions between different types.
+Warn about implicit conversions that are likely to change the value of
+the expression after conversion. Implied by @option{-Wall}.
+
+@item -Wconversion-extra
+@opindex @code{Wconversion-extra}
+@cindex warnings, conversion
+@cindex conversion
+Warn about implicit conversions between different types and kinds.
@item -Wimplicit-interface
@opindex @code{Wimplicit-interface}