From: Alan Modra Date: Mon, 10 Feb 2020 22:41:18 +0000 (+1030) Subject: Ensure *valuep always written by extract_normal return X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;ds=sidebyside;h=2f5dd314d60e25b3094694999889c72a49fee76b;p=deliverable%2Fbinutils-gdb.git 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. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 7ab3a819a7..1e0205678d 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 8b73f2f09b..d5fa57a1c4 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 9d856cda83..6a9b97fcb5 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 64b3d381e5..c23a969294 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 ea4ea0a6aa..5544d550f5 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 5e31df272e..0421884908 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 a7dd80ce00..9258f7d3ad 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 1e5cc4772e..319e994d84 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 0a5e54a5c8..9b594e8e0e 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 36231f26dd..c1fca2e169 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 8d5ce60db6..ddebc32428 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 c1d2e396b9..6a73f419c9 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 92dc6bc49f..53a0775f7a 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 cc2955f041..d802a98462 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 5929ded7de..6b228bcdfc 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 69555cb3e0..70cf88d546 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); }