re PR bootstrap/78985 (profiledbootstrap failure by -Wuninitialized)
authorMartin Liska <mliska@suse.cz>
Sun, 5 Feb 2017 15:51:13 +0000 (16:51 +0100)
committerJeff Law <law@gcc.gnu.org>
Sun, 5 Feb 2017 15:51:13 +0000 (08:51 -0700)
PR bootstrap/78985
* config/s390/s390.c (s390_gimplify_va_arg): Initialize local
variable to NULL.
(print_operand_address): Initialize a struct to zero.

From-SVN: r245195

gcc/ChangeLog
gcc/config/s390/s390.c

index e0d251d..22a8102 100644 (file)
@@ -1,3 +1,10 @@
+2017-02-05  Martin Liska  <mliska@suse.cz>
+
+       PR bootstrap/78985
+       * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
+       variable to NULL.
+       (print_operand_address): Initialize a struct to zero.
+
 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
 
        * doc/extend.texi (x86 specific memory model extensions for
index 93377cd..b7b93ac 100644 (file)
@@ -7347,6 +7347,7 @@ void
 print_operand_address (FILE *file, rtx addr)
 {
   struct s390_address ad;
+  memset (&ad, 0, sizeof (s390_address));
 
   if (s390_loadrelative_operand_p (addr, NULL, NULL))
     {
@@ -12195,7 +12196,7 @@ s390_gimplify_va_arg (tree valist, tree type, gimple_seq *pre_p,
   tree f_gpr, f_fpr, f_ovf, f_sav;
   tree gpr, fpr, ovf, sav, reg, t, u;
   int indirect_p, size, n_reg, sav_ofs, sav_scale, max_reg;
-  tree lab_false, lab_over;
+  tree lab_false, lab_over = NULL_TREE;
   tree addr = create_tmp_var (ptr_type_node, "addr");
   bool left_align_p; /* How a value < UNITS_PER_LONG is aligned within
                        a stack slot.  */