From 2f5dd314d60e25b3094694999889c72a49fee76b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 11 Feb 2020 09:11:18 +1030 Subject: [PATCH] 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/ChangeLog | 8 ++++++++ opcodes/bpf-ibld.c | 5 ++++- opcodes/cgen-ibld.in | 5 ++++- opcodes/epiphany-ibld.c | 5 ++++- opcodes/fr30-ibld.c | 5 ++++- opcodes/frv-ibld.c | 5 ++++- opcodes/ip2k-ibld.c | 5 ++++- opcodes/iq2000-ibld.c | 5 ++++- opcodes/lm32-ibld.c | 5 ++++- opcodes/m32c-ibld.c | 5 ++++- opcodes/m32r-ibld.c | 5 ++++- opcodes/mep-ibld.c | 5 ++++- opcodes/mt-ibld.c | 5 ++++- opcodes/or1k-ibld.c | 5 ++++- opcodes/xc16x-ibld.c | 5 ++++- opcodes/xstormy16-ibld.c | 5 ++++- 16 files changed, 68 insertions(+), 15 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 7ab3a819a77..1e0205678d8 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,11 @@ +2020-02-11 Alan Modra + + * 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. + 2020-02-10 Matthew Malcomson * arm-dis.c (print_insn_cde): Define 'V' parse character. diff --git a/opcodes/bpf-ibld.c b/opcodes/bpf-ibld.c index 8b73f2f09bd..d5fa57a1c4a 100644 --- a/opcodes/bpf-ibld.c +++ b/opcodes/bpf-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); } diff --git a/opcodes/cgen-ibld.in b/opcodes/cgen-ibld.in index 9d856cda839..6a9b97fcb57 100644 --- a/opcodes/cgen-ibld.in +++ b/opcodes/cgen-ibld.in @@ -479,7 +479,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); } diff --git a/opcodes/epiphany-ibld.c b/opcodes/epiphany-ibld.c index 64b3d381e5c..c23a969294e 100644 --- a/opcodes/epiphany-ibld.c +++ b/opcodes/epiphany-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); } diff --git a/opcodes/fr30-ibld.c b/opcodes/fr30-ibld.c index ea4ea0a6aac..5544d550f52 100644 --- a/opcodes/fr30-ibld.c +++ b/opcodes/fr30-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); } diff --git a/opcodes/frv-ibld.c b/opcodes/frv-ibld.c index 5e31df272ee..04218849087 100644 --- a/opcodes/frv-ibld.c +++ b/opcodes/frv-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); } diff --git a/opcodes/ip2k-ibld.c b/opcodes/ip2k-ibld.c index a7dd80ce005..9258f7d3ad8 100644 --- a/opcodes/ip2k-ibld.c +++ b/opcodes/ip2k-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); } diff --git a/opcodes/iq2000-ibld.c b/opcodes/iq2000-ibld.c index 1e5cc4772ea..319e994d840 100644 --- a/opcodes/iq2000-ibld.c +++ b/opcodes/iq2000-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); } diff --git a/opcodes/lm32-ibld.c b/opcodes/lm32-ibld.c index 0a5e54a5c8d..9b594e8e0e2 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); } diff --git a/opcodes/m32c-ibld.c b/opcodes/m32c-ibld.c index 36231f26dd9..c1fca2e1698 100644 --- a/opcodes/m32c-ibld.c +++ b/opcodes/m32c-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); } diff --git a/opcodes/m32r-ibld.c b/opcodes/m32r-ibld.c index 8d5ce60db6d..ddebc32428e 100644 --- a/opcodes/m32r-ibld.c +++ b/opcodes/m32r-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); } diff --git a/opcodes/mep-ibld.c b/opcodes/mep-ibld.c index c1d2e396b92..6a73f419c98 100644 --- a/opcodes/mep-ibld.c +++ b/opcodes/mep-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); } diff --git a/opcodes/mt-ibld.c b/opcodes/mt-ibld.c index 92dc6bc49f5..53a0775f7af 100644 --- a/opcodes/mt-ibld.c +++ b/opcodes/mt-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); } diff --git a/opcodes/or1k-ibld.c b/opcodes/or1k-ibld.c index cc2955f0416..d802a98462b 100644 --- a/opcodes/or1k-ibld.c +++ b/opcodes/or1k-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); } diff --git a/opcodes/xc16x-ibld.c b/opcodes/xc16x-ibld.c index 5929ded7ded..6b228bcdfcd 100644 --- a/opcodes/xc16x-ibld.c +++ b/opcodes/xc16x-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); } diff --git a/opcodes/xstormy16-ibld.c b/opcodes/xstormy16-ibld.c index 69555cb3e0f..70cf88d546b 100644 --- a/opcodes/xstormy16-ibld.c +++ b/opcodes/xstormy16-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); } -- 2.30.2