diff options
author | Martin Liska <mliska@suse.cz> | 2016-12-02 09:36:01 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-12-02 08:36:01 +0000 |
commit | a4f2895465da4c8856b119a5787b95db345567a9 (patch) | |
tree | d78ade7d79b89f366b780063e24f411faa024243 /gcc/config/avr/avr-devices.c | |
parent | 32ff7e39c15206dada1406bdc06e18db9e02d248 (diff) | |
download | gcc-a4f2895465da4c8856b119a5787b95db345567a9.zip gcc-a4f2895465da4c8856b119a5787b95db345567a9.tar.gz gcc-a4f2895465da4c8856b119a5787b95db345567a9.tar.bz2 |
Fix runtime error: left shift of negative value (PR
PR ipa/78555
* sreal.c (sreal::to_int): Make absolute value before shifting.
(sreal::operator/): Likewise.
(sreal_verify_negative_division): New test.
(void sreal_c_tests): Call the new test.
* sreal.h (sreal::normalize_up): Use new SREAL_ABS and
SREAL_SIGN macros.
(sreal::normalize_down): Likewise.
From-SVN: r243163
Diffstat (limited to 'gcc/config/avr/avr-devices.c')
0 files changed, 0 insertions, 0 deletions