From e6b07173d2cb671f6726bf1d00e08b107391fb5c Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Sun, 5 Feb 2017 16:51:13 +0100 Subject: [PATCH] re PR bootstrap/78985 (profiledbootstrap failure by -Wuninitialized) 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 | 7 +++++++ gcc/config/s390/s390.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0d251d..22a8102 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-02-05 Martin Liska + + 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 * doc/extend.texi (x86 specific memory model extensions for diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 93377cd..b7b93ac 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -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. */ -- 2.7.4