diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-10 18:06:09 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-11 11:34:33 +1030 |
commit | b8e61daa1ad56330fd8931c8a53bfa16d8e4a47a (patch) | |
tree | ba543454bcef55c770165f89c0430044b063c24e /cpu/ChangeLog | |
parent | 8ff23dba80b80a9f47d75dd43812e041f6674763 (diff) | |
download | binutils-b8e61daa1ad56330fd8931c8a53bfa16d8e4a47a.zip binutils-b8e61daa1ad56330fd8931c8a53bfa16d8e4a47a.tar.gz binutils-b8e61daa1ad56330fd8931c8a53bfa16d8e4a47a.tar.bz2 |
ubsan: epiphany: left shift of negative value
Two places in epiphany_cgen_extract_operand, "value" is a long.
value = ((((value) << (1))) + (pc));
cpu/
* epiphany.cpu (f-simm8, f-simm24): Use multiply rather than
shift left to avoid UB on left shift of negative values.
opcodes/
* epiphany-ibld.c: Regenerate.
Diffstat (limited to 'cpu/ChangeLog')
-rw-r--r-- | cpu/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog index 87cec69..fd26cb7 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,8 @@ +2019-12-11 Alan Modra <amodra@gmail.com> + + * epiphany.cpu (f-simm8, f-simm24): Use multiply rather than + shift left to avoid UB on left shift of negative values. + 2019-11-20 Jose E. Marchesi <jose.marchesi@oracle.com> * bpf.cpu: Fix comment describing the 128-bit instruction format. |