diff options
author | Mikael Morin <mikael@gcc.gnu.org> | 2015-08-19 13:42:36 +0000 |
---|---|---|
committer | Mikael Morin <mikael@gcc.gnu.org> | 2015-08-19 13:42:36 +0000 |
commit | d63c864834782e37f78834d168e7e383d2c080b3 (patch) | |
tree | 7fc210dbbfce746c7c7751a31a39af13ad6a75b5 /gcc/function.c | |
parent | dce573c43f4e754e2aa0224a67626792b31eaf26 (diff) | |
download | gcc-d63c864834782e37f78834d168e7e383d2c080b3.zip gcc-d63c864834782e37f78834d168e7e383d2c080b3.tar.gz gcc-d63c864834782e37f78834d168e7e383d2c080b3.tar.bz2 |
Avoid signed left shift undefined behaviour in sext_hwi
gcc/
PR other/67042
* hwint.h (sext_hwi): Switch to unsigned for the left shift, and
conditionalize the whole on __GNUC__. Add fallback code
depending neither on undefined nor implementation-defined behaviour.
From-SVN: r227008
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions