OSDN Git Service

2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 May 2010 10:30:39 +0000 (10:30 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 May 2010 10:30:39 +0000 (10:30 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159454 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/gcc-interface/misc.c
gcc/fortran/ChangeLog
gcc/fortran/options.c

index b70056b..20ca27a 100644 (file)
@@ -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 c8193f3..0f85393 100644 (file)
@@ -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.  */
index 2b2bc9b..a8879ac 100644 (file)
@@ -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 28c9114..6a5a3db 100644 (file)
@@ -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;
 }