From 2f5dd314d60e25b3094694999889c72a49fee76b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 11 Feb 2020 09:11:18 +1030 Subject: Ensure *valuep always written by extract_normal return * cgen-ibld.in (extract_normal): Set *valuep on all return paths. * bpf-ibld.c, * epiphany-ibld.c, * fr30-ibld.c, * frv-ibld.c, * ip2k-ibld.c, * iq2000-ibld.c, * lm32-ibld.c, * m32c-ibld.c, * m32r-ibld.c, * mep-ibld.c, * mt-ibld.c, * or1k-ibld.c, * xc16x-ibld.c, * xstormy16-ibld.c: Regenerate. --- opcodes/lm32-ibld.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'opcodes/lm32-ibld.c') diff --git a/opcodes/lm32-ibld.c b/opcodes/lm32-ibld.c index 0a5e54a..9b594e8 100644 --- a/opcodes/lm32-ibld.c +++ b/opcodes/lm32-ibld.c @@ -480,7 +480,10 @@ extract_normal (CGEN_CPU_DESC cd, abort (); if (fill_cache (cd, ex_info, word_offset / 8, word_length / 8, pc) == 0) - return 0; + { + *valuep = 0; + return 0; + } value = extract_1 (cd, ex_info, start, length, word_length, bufp, pc); } -- cgit v1.1