------- Comment #4 from matz at gcc dot gnu dot org  2009-10-08 16:03 -------
Subject: Bug 41573

Author: matz
Date: Thu Oct  8 16:03:11 2009
New Revision: 152563

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152563
Log:
        PR middle-end/41573
        * builtins.c (fold_builtin_isascii): Use fold_build2.
        (fold_builtin_isdigit): Ditto.
        * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
        * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
        remove_useless_stmts_cond, remove_useless_stmts_tf,
        remove_useless_stmts_tc, remove_useless_stmts_bind,
        remove_useless_stmts_goto, remove_useless_stmts_label,
        remove_useless_stmts_1, remove_useless_stmts,
        pass_remove_useless_stmts): Remove.
        * tree-pass.h (pass_remove_useless_stmts): Don't declare.
        * passes.c (init_optimization_passes): Don't add
        pass_remove_useless_stmts.
        * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
        * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
        static constants.
        * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
        for static constants.
        * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
        * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.

testsuite/
        * gcc.dg/tree-ssa/foldstring-1.c: Use fre dump.
        * gcc.dg/tree-ssa/useless-1.c: Use gimple dump.
        * gcc.dg/pr41573.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr41573.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/except.c
    trunk/gcc/lto-streamer-in.c
    trunk/gcc/lto-streamer-out.c
    trunk/gcc/lto-symtab.c
    trunk/gcc/passes.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/foldstring-1.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/useless-1.c
    trunk/gcc/tree-cfg.c
    trunk/gcc/tree-eh.c
    trunk/gcc/tree-pass.h
    trunk/gcc/tree.c


-- 


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

Reply via email to