------- Comment #6 from rguenth at gcc dot gnu dot org  2007-08-24 15:09 -------
Subject: Bug 33166

Author: rguenth
Date: Fri Aug 24 15:09:10 2007
New Revision: 127771

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127771
Log:
2007-08-24  Richard Guenther  <[EMAIL PROTECTED]>

        PR middle-end/33166
        * tree-ssa.c (useless_type_conversion_p): Split into a
        recursive and a non-recursive part.
        (useless_type_conversion_p_1): New function.
        * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
        from maybe_fold_offset_to_reference is trivially convertible
        to the desired type before doing the simplification.

        * gcc.c-torture/compile/pr33166.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr33166.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c
    trunk/gcc/tree-ssa.c


-- 


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

Reply via email to