This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Patch, Fortran, committed] PR61126 â fix wextra_1.f regression
- From: Tobias Burnus <burnus at net-b dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Wed, 18 Jun 2014 08:11:31 +0200
- Subject: [Patch, Fortran, committed] PR61126 â fix wextra_1.f regression
- Authentication-results: sourceware.org; auth=none
Committed as Rev. 211766. See PR comments 10, 23 and 24 for the patch
and the background.
Thanks to Manuel and Dominque for the patch!
Tobias
2014-06-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/61126
* options.c (gfc_handle_option): Remove call to
handle_generated_option.
2014-06-18 Dominique d'Humieres <dominiq@lps.ens.fr>
PR fortran/61126
* gfortran.dg/wextra_1.f: Add -Wall to dg-options.
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index a2b91ca..e4931f0 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -674,12 +674,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
break;
case OPT_Wextra:
- handle_generated_option (&global_options, &global_options_set,
- OPT_Wunused_parameter, NULL, value,
- gfc_option_lang_mask (), kind, loc,
- handlers, global_dc);
set_Wextra (value);
-
break;
case OPT_Wfunction_elimination:
diff --git a/gcc/testsuite/gfortran.dg/wextra_1.f b/gcc/testsuite/gfortran.dg/wextra_1.f
index 94c8edd..0eb28e1 100644
--- a/gcc/testsuite/gfortran.dg/wextra_1.f
+++ b/gcc/testsuite/gfortran.dg/wextra_1.f
@@ -1,5 +1,5 @@
! { dg-do compile }
-! { dg-options "-Wextra" }
+! { dg-options "-Wall -Wextra" }
program main
integer, parameter :: x=3 ! { dg-warning "Unused parameter" }
real :: a