------- Comment #6 from sayle at gcc dot gnu dot org  2006-04-24 23:16 -------
Subject: Bug 26961

Author: sayle
Date: Mon Apr 24 23:16:29 2006
New Revision: 113232

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113232
Log:

        PR target/26961
        * fold-const.c (fold_ternary): When converting "A ? B : C" into either
        "A op B" or "A op C", we may need to convert A to the type of B and C.

        * gcc.dg/fold-cond-1.c: New test case.
        * gcc.dg/pr26961-1.c: Likewise.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/fold-cond-1.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr26961-1.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/fold-const.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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

Reply via email to