misc.c (gnat_handle_option): Remove special logic for Wuninitialized without -O.

2010-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>

ada/
	* gcc-interface/misc.c (gnat_handle_option): Remove special logic
	for Wuninitialized without -O.
fortran/
	* options.c (set_Wall): Remove special logic for Wuninitialized
	without -O.

From-SVN: r159454
parent 491fc0e1
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
......
......@@ -209,12 +209,7 @@ gnat_handle_option (size_t scode, const char *arg, int value,
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. */
......
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
......
......@@ -413,14 +413,7 @@ set_Wall (int setting)
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment