diff options
author | Joseph Myers <joseph@codesourcery.com> | 2008-10-29 17:05:42 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2008-10-29 17:05:42 +0000 |
commit | 20ded7a68b10f9c2d1aaa94e89df494bf0ce41a0 (patch) | |
tree | f0bc48b745fe374d4990579d0ef02a2d88bb7799 /gcc/ChangeLog | |
parent | 669eeb28eaad6f3cb79d48a5e4176775befe0429 (diff) | |
download | gcc-20ded7a68b10f9c2d1aaa94e89df494bf0ce41a0.zip gcc-20ded7a68b10f9c2d1aaa94e89df494bf0ce41a0.tar.gz gcc-20ded7a68b10f9c2d1aaa94e89df494bf0ce41a0.tar.bz2 |
re PR middle-end/36578 (cast to long double not taken into account when result stored to a double)
PR middle-end/36578
* convert.c (convert_to_real): Do not optimize conversions of
binary arithmetic operations between binary and decimal
floating-point types. Consider mode of target type in determining
decimal type for arithmetic. Unless
flag_unsafe_math_optimizations, do not optimize binary conversions
where this may change rounding behavior.
* real.c (real_can_shorten_arithmetic): New.
* real.h (real_can_shorten_arithmetic): Declare.
testsuite:
* gcc.dg/dfp/convert-bfp-13.c, gcc.dg/dfp/convert-bfp-14.c,
gcc.dg/dfp/convert-dfp-fold-2.c, gcc.target/i386/pr36578-1.c,
gcc.target/i386/pr36578-2.c: New tests.
From-SVN: r141432
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r-- | gcc/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a0f5ec..1270ebc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2008-10-29 Joseph Myers <joseph@codesourcery.com> + + PR middle-end/36578 + * convert.c (convert_to_real): Do not optimize conversions of + binary arithmetic operations between binary and decimal + floating-point types. Consider mode of target type in determining + decimal type for arithmetic. Unless + flag_unsafe_math_optimizations, do not optimize binary conversions + where this may change rounding behavior. + * real.c (real_can_shorten_arithmetic): New. + * real.h (real_can_shorten_arithmetic): Declare. + 2008-10-29 Bernd Schmidt <bernd.schmidt@analog.com> * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315, |