This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix potential uninitialized variable error


I committed the following patch as obvious fix.


Index: ChangeLog
===================================================================
Index: config/i386/i386.c
===================================================================
davidxl@aples2:../tot/gcc\>> svn diff
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 201732)
+++ config/i386/i386.c  (working copy)
@@ -2815,7 +2815,7 @@ ix86_parse_stringop_strategy_string (cha

   do
     {
-      int mins, maxs;
+      int mins = 0, maxs;
       stringop_alg alg;
       char alg_name[128];
       char align[16];
Index: ChangeLog
===================================================================
--- ChangeLog   (revision 201732)
+++ ChangeLog   (working copy)
@@ -1,4 +1,8 @@
 2013-08-14  Xinliang David Li  <davidxl@google.com>
+       * config/i386/i386.c (ix86_option_override_internal):
+       Fix potential unitialized variable error.
+
+2013-08-14  Xinliang David Li  <davidxl@google.com>

        * config/i386/i386.opt: Define two new options.
        * config/i386/x86-tune.def: Add arch selector field in macros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]