------- Comment #4 from rguenth at gcc dot gnu dot org  2008-02-27 14:13 -------
Subject: Bug 34971

Author: rguenth
Date: Wed Feb 27 14:12:33 2008
New Revision: 132712

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132712
Log:
2008-02-27  Richard Guenther  <[EMAIL PROTECTED]>

        PR middle-end/35390
        * fold-const.c (fold_unary): Return the correct argument,
        converted to the result type.

        * gcc.c-torture/execute/pr35390.c: New testcase.

        PR middle-end/34971
        * fold-const.c (fold_binary): Use the types precision, not the
        bitsize of the mode if folding rotate expressions.  Build rotates
        only for full modes.

        * gcc.c-torture/execute/pr34971.c: New testcase.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr34971.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/execute/pr35390.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/fold-const.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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

Reply via email to