aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorSteven G. Kargl <kargl@gcc.gnu.org>2011-05-03 01:23:46 +0000
committerSteven G. Kargl <kargl@gcc.gnu.org>2011-05-03 01:23:46 +0000
commit5a17346ae5b88f06d5e21ecb3bd490cd76e797a1 (patch)
tree409b0d77cb998fd7b37d9a74be2bdfcf220ec87a /gcc/fortran/options.c
parent591d488766d9778ca1bd5d425c331d72d314866a (diff)
downloadgcc-5a17346ae5b88f06d5e21ecb3bd490cd76e797a1.zip
gcc-5a17346ae5b88f06d5e21ecb3bd490cd76e797a1.tar.gz
gcc-5a17346ae5b88f06d5e21ecb3bd490cd76e797a1.tar.bz2
re PR fortran/48720 (quad precision literals do not work)
2011-05-02 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/48720 * gfortran.texi: Document the 'Q' exponent-letter extension. * invoke.texi: Document -Wreal-q-constant. * lang.opt: Add -Wreal-q-constant option. * gfortran.h: Add warn_real_q_constant to option struct. * primary.c (match_real_constant): Use it. Accept 'Q' as exponent-letter for REAL(16) real-literal-constant with a fallback to REAL(10) or error if REAL(10) is not available. * options.c (gfc_init_options, set_Wall) Set it. (gfc_handle_option): Handle new option. From-SVN: r173285
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index 9c0e000..f56fad7 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -108,6 +108,7 @@ gfc_init_options (unsigned int decoded_options_count,
gfc_option.warn_intrinsic_shadow = 0;
gfc_option.warn_intrinsics_std = 0;
gfc_option.warn_align_commons = 1;
+ gfc_option.warn_real_q_constant = 0;
gfc_option.warn_unused_dummy_argument = 0;
gfc_option.max_errors = 25;
@@ -455,6 +456,7 @@ set_Wall (int setting)
gfc_option.warn_intrinsic_shadow = setting;
gfc_option.warn_intrinsics_std = setting;
gfc_option.warn_character_truncation = setting;
+ gfc_option.warn_real_q_constant = setting;
gfc_option.warn_unused_dummy_argument = setting;
warn_unused = setting;
@@ -660,6 +662,10 @@ gfc_handle_option (size_t scode, const char *arg, int value,
gfc_option.warn_align_commons = value;
break;
+ case OPT_Wreal_q_constant:
+ gfc_option.warn_real_q_constant = value;
+ break;
+
case OPT_Wunused_dummy_argument:
gfc_option.warn_unused_dummy_argument = value;
break;