diff options
author | Alan Modra <amodra@gmail.com> | 2020-02-11 09:11:18 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-02-11 12:14:01 +1030 |
commit | 2f5dd314d60e25b3094694999889c72a49fee76b (patch) | |
tree | c707b547ed64878bb800c92f2c88e20fc5adcb37 /opcodes/cgen-ibld.in | |
parent | 212a0131eb74361b1d54cd5748e2d89539bf108e (diff) | |
download | gdb-2f5dd314d60e25b3094694999889c72a49fee76b.zip gdb-2f5dd314d60e25b3094694999889c72a49fee76b.tar.gz gdb-2f5dd314d60e25b3094694999889c72a49fee76b.tar.bz2 |
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.
Diffstat (limited to 'opcodes/cgen-ibld.in')
-rw-r--r-- | opcodes/cgen-ibld.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/cgen-ibld.in b/opcodes/cgen-ibld.in index 9d856cd..6a9b97f 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); } |