------- Comment #6 from janis at gcc dot gnu dot org  2009-02-25 22:09 -------
Subject: Bug 36578

Author: janis
Date: Wed Feb 25 22:08:55 2009
New Revision: 144436

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144436
Log:
2009-02-25  Janis Johnson  <janis...@us.ibm.com>

gcc/
        Backport from mainline:
        2008-10-29  Joseph Myers  <jos...@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.

gcc/testsuite/
        Backport from mainline:
        2008-10-29  Joseph Myers  <jos...@codesourcery.com>

        PR middle-end/36578
        * 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.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/dfp/convert-bfp-13.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/dfp/convert-bfp-14.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/dfp/convert-dfp-fold-2.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/dfp/pr39034.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr36578-1.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.target/i386/pr36578-2.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/convert.c
    branches/gcc-4_3-branch/gcc/real.c
    branches/gcc-4_3-branch/gcc/real.h
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36578

Reply via email to