This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[Committed] remove old Wuninitialized logic
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>
- Date: Sun, 16 May 2010 12:33:50 +0200
- Subject: [Committed] remove old Wuninitialized logic
This special case is not needed since Wuninitialized is enabled also without -O.
Committed as obvious revision 159454.
Cheers,
Manuel.
Index: gcc/ada/ChangeLog
===================================================================
--- gcc/ada/ChangeLog (revision 159453)
+++ gcc/ada/ChangeLog (revision 159454)
@@ -1,3 +1,8 @@
+2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ * gcc-interface/misc.c (gnat_handle_option): Remove special logic
+ for Wuninitialized without -O.
+
2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/gigi.h (enum standard_datatypes): Add new value
Index: gcc/ada/gcc-interface/misc.c
===================================================================
--- gcc/ada/gcc-interface/misc.c (revision 159453)
+++ gcc/ada/gcc-interface/misc.c (revision 159454)
@@ -209,12 +209,7 @@
case OPT_Wall:
warn_unused = value;
-
- /* We save the value of warn_uninitialized, since if they put
- -Wuninitialized on the command line, we need to generate a
- warning about not using it without also specifying -O. */
- if (warn_uninitialized != 1)
- warn_uninitialized = (value ? 2 : 0);
+ warn_uninitialized = value;
break;
/* These are used in the GCC Makefile. */
Index: gcc/fortran/ChangeLog
===================================================================
--- gcc/fortran/ChangeLog (revision 159453)
+++ gcc/fortran/ChangeLog (revision 159454)
@@ -1,3 +1,8 @@
+2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ * options.c (set_Wall): Remove special logic for Wuninitialized
+ without -O.
+
2010-05-15 Janus Weil <janus@gcc.gnu.org>
PR fortran/44154
Index: gcc/fortran/options.c
===================================================================
--- gcc/fortran/options.c (revision 159453)
+++ gcc/fortran/options.c (revision 159454)
@@ -413,14 +413,7 @@
warn_unused = setting;
warn_return_type = setting;
warn_switch = setting;
-
- /* We save the value of warn_uninitialized, since if they put
- -Wuninitialized on the command line, we need to generate a
- warning about not using it without also specifying -O. */
- if (setting == 0)
- warn_uninitialized = 0;
- else if (warn_uninitialized != 1)
- warn_uninitialized = 2;
+ warn_uninitialized = setting;
}