aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/riscv/riscv.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 11414b2..ab841a2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2019-11-19 Martin Liska <mliska@suse.cz>
+
+ PR bootstrap/92540
+ * config/riscv/riscv.c (riscv_address_insns): Initialize
+ addr in order to remove boostrap -Wmaybe-uninitialized
+ error.
+
2019-11-18 Martin Sebor <msebor@redhat.com>
PR tree-optimization/92493
diff --git a/gcc/config/riscv/riscv.c b/gcc/config/riscv/riscv.c
index 11a43c1..9aa4d26 100644
--- a/gcc/config/riscv/riscv.c
+++ b/gcc/config/riscv/riscv.c
@@ -857,7 +857,7 @@ riscv_legitimate_address_p (machine_mode mode, rtx x, bool strict_p)
int
riscv_address_insns (rtx x, machine_mode mode, bool might_split_p)
{
- struct riscv_address_info addr;
+ struct riscv_address_info addr = {};
int n = 1;
if (!riscv_classify_address (&addr, x, mode, false))