diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-21 21:29:29 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-21 21:29:29 +0000 |
| commit | af0907da3b8bbc439f651c43a59bfdaddf28e590 (patch) | |
| tree | d1030e594d863fd4319e656fd16f5fbba7cd2f74 /libjava/classpath/gnu/java/text | |
| parent | 4d5cf08ac5097410d0c851951b01cd2a7c154696 (diff) | |
| download | ppe42-gcc-af0907da3b8bbc439f651c43a59bfdaddf28e590.tar.gz ppe42-gcc-af0907da3b8bbc439f651c43a59bfdaddf28e590.zip | |
PR middle-end/56420
* expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
avoid signed wrapping.
(expand_mult): Handle properly multiplication by
((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
in the compiler if coeff is HOST_WIDE_INT_MIN.
(expand_divmod): Don't make ext_op1 static, change it's type to
uhwi. Avoid undefined behavior in -INTVAL (op1).
* gcc.dg/torture/pr56420.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196215 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/gnu/java/text')
0 files changed, 0 insertions, 0 deletions

