diff options
author | Tobias Burnus <burnus@gcc.gnu.org> | 2014-11-30 09:33:25 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2014-11-30 09:33:25 +0100 |
commit | 73e42eef1617bcfa5b333bdb563efeea1626d112 (patch) | |
tree | c5726afc5d984361b858ab33670a6a95ce59cab1 /gcc/fortran/lang.opt | |
parent | daa38cc13da3de5a9216d5e8f05736b326ac14ae (diff) | |
download | gcc-73e42eef1617bcfa5b333bdb563efeea1626d112.zip gcc-73e42eef1617bcfa5b333bdb563efeea1626d112.tar.gz gcc-73e42eef1617bcfa5b333bdb563efeea1626d112.tar.bz2 |
gfortran.h (gfc_option_t): Remove warn_aliasing,
2014-11-30 Tobias Burnus <burnus@net-b.de>
* gfortran.h (gfc_option_t): Remove warn_aliasing,
* warn_ampersand,
warn_function_elimination, warn_implicit_interface,
warn_implicit_procedure, warn_line_truncation,
warn_surprising, warn_underflow, warn_intrinsic_shadow,
warn_array_temp, warn_align_commons, warn_real_q_constant,
warn_unused_dummy_argument, warn_zerotrip, warn_realloc_lhs,
warn_realloc_lhs_all, warn_compare_reals, warn_target_lifetime.
* arith.c (check_result, gfc_real2real, gfc_real2complex,
gfc_complex2real, gfc_complex2complex): Honor changed
variable names.
* check.c (gfc_check_transfer): Ditto.
* expr.c (gfc_check_assign, gfc_check_pointer_assign): Ditto.
* interface.c (compare_parameter, gfc_procedure_use,
* gfc_ppc_use,
gfc_arglist_matches_symbol): Ditto.
* intrinsic.c (gfc_warn_intrinsic_shadow): Ditto.
* primary.c (match_real_constant, match_string_constant): Ditto.
* resolve.c (gfc_resolve_intrinsic, resolve_operator,
gfc_resolve_iterator, resolve_select, resolve_ordinary_assign,
resolve_charlen, gfc_resolve_finalizers): Ditto.
* scanner.c (gfc_next_char_literal): Ditto.
* simplify.c (simplify_achar_char, gfc_simplify_iachar): Ditto.
* trans-array.c (gfc_trans_create_temp_array,
gfc_trans_dummy_array_bias, gfc_conv_array_parameter): Ditto.
* trans-common.c (translate_common):
* trans-decl.c (generate_local_decl): Ditto.
* trans-expr.c (realloc_lhs_warning): Ditto.
* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Ditto.
* decl.c (do_warn_intrinsic_shadow): Ditto. Renamed from
warn_intrinsic_shadow.
* frontend-passes.c (do_warn_function_elimination): Honor
changed variable names. Renamed from do_warn_function_elimination.
* invoke.texi (Wunderflow): Document that it is enabled by
* default.
* lang.opt (Waliasing, Walign-commons, Warray-temporaries,
Wcompare-reals, Wfunction-elimination, Wimplicit-interface,
Wimplicit-procedure, Wline-truncation, Wreal-q-constant, Wrealloc-lhs,
Wrealloc-lhs-all, Wtarget-lifetime, Wsurprising, Wunderflow,
Wintrinsic-shadow, Wunused-dummy-argument, Wzerotrip): Use Var(),
add Init() and LangEnabledBy() were required.
(Wmaybe-uninitialized, Wreturn-type, Wuninitialized): Add
LangEnabledBy.
* options.c (gfc_init_options, gfc_post_options,
* gfc_handle_option):
Remove options handled in lang.opt; handle renaming.
(set_Wall, set_Wextra): Remove.
From-SVN: r218188
Diffstat (limited to 'gcc/fortran/lang.opt')
-rw-r--r-- | gcc/fortran/lang.opt | 52 |
1 files changed, 32 insertions, 20 deletions
diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index 1d6cdde..c297817 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -194,19 +194,19 @@ Fortran ; Documented in C Waliasing -Fortran Warning +Fortran Warning Var(warn_aliasing) LangEnabledBy(Fortran,Wall) Warn about possible aliasing of dummy arguments Walign-commons -Fortran Warning +Fortran Warning Var(warn_align_commons) Init(1) Warn about alignment of COMMON blocks Wampersand -Fortran Warning +Fortran Warning Var(warn_ampersand) LangEnabledBy(Fortran,Wall || Wpedantic) Warn about missing ampersand in continued character constants Warray-temporaries -Fortran Warning +Fortran Warning Var(warn_array_temporaries) Warn about creation of array temporaries Wc-binding-type @@ -222,7 +222,7 @@ Fortran Var(warn_character_truncation) Warning LangEnabledBy(Fortran,Wall) Warn about truncated character expressions Wcompare-reals -Fortran Warning +Fortran Warning Var(warn_compare_reals) LangEnabledBy(Fortran,Wextra) Warn about equality comparisons involving REAL or COMPLEX expressions Wconversion @@ -235,28 +235,32 @@ Warn about most implicit conversions Wextra Fortran Warning -Print extra (possibly unwanted) warnings +; Documented in common Wfunction-elimination -Fortran Warning +Fortran Warning Var(warn_function_elimination) Warn about function call elimination Wimplicit-interface -Fortran Warning +Fortran Warning Var(warn_implicit_interface) Warn about calls with implicit interface Wimplicit-procedure -Fortran Warning +Fortran Warning Var(warn_implicit_procedure) Warn about called procedures not explicitly declared Wline-truncation -Fortran Warning +Fortran Warning Var(warn_line_truncation) LangEnabledBy(Fortran,Wall) Warn about truncated source lines Wintrinsics-std Fortran Var(warn_intrinsics_std) Warning LangEnabledBy(Fortran,Wall) Warn on intrinsics not part of the selected standard +Wmaybe-uninitialized +Fortran LangEnabledBy(Fortran,Wall) +; Documented in common.opt + Wmissing-include-dirs Fortran ; Documented in C/C++ @@ -274,27 +278,27 @@ Fortran ; Documented in common.opt Wreal-q-constant -Fortran Warning +Fortran Warning Var(warn_real_q_constant) LangEnabledBy(Fortran,Wall) Warn about real-literal-constants with 'q' exponent-letter Wrealloc-lhs -Fortran Warning +Fortran Warning Var(warn_realloc_lhs) LangEnabledBy(Fortran,Wrealloc-lhs-all) Warn when a left-hand-side array variable is reallocated Wrealloc-lhs-all -Fortran Warning +Fortran Warning Var(warn_realloc_lhs_all) Warn when a left-hand-side variable is reallocated Wtarget-lifetime -Fortran Warning +Fortran Warning Var(warn_target_lifetime) LangEnabledBy(Fortran,Wall) Warn if the pointer in a pointer assignment might outlive its target Wreturn-type -Fortran Warning +Fortran Warning LangEnabledBy(Fortran,Wall) ; Documented in C Wsurprising -Fortran Warning +Fortran Warning Var(warn_surprising) LangEnabledBy(Fortran,Wall) Warn about \"suspicious\" constructs Wtabs @@ -302,19 +306,27 @@ Fortran Warning Var(warn_tabs) LangEnabledBy(Fortran,Wall || Wpedantic) Permit nonconforming uses of the tab character Wunderflow -Fortran Warning +Fortran Warning Var(warn_underflow) Init(1) Warn about underflow of numerical constant expressions +Wuninitialized +Fortran LangEnabledBy(Fortran,Wall) +; Documented in common.opt + Wintrinsic-shadow -Fortran Warning +Fortran Warning Var(warn_intrinsic_shadow) LangEnabledBy(Fortran,Wall) Warn if a user-procedure has the same name as an intrinsic +Wunused +LangEnabledBy(Fortran,Wall) +; Documented in common.opt + Wunused-dummy-argument -Fortran Warning +Fortran Warning Var(warn_unused_dummy_argument) LangEnabledBy(Fortran,Wall) Warn about unused dummy arguments. Wzerotrip -Fortran Warning +Fortran Warning Var(warn_zerotrip) LangEnabledBy(Fortran,Wall) Warn about zero-trip DO loops cpp |