This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/32810] Not folding of const element for goto



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-03-27 16:33 -------
Subject: Bug 32810

Author: rguenth
Date: Thu Mar 27 16:32:28 2008
New Revision: 133645

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133645
Log:
2008-03-27  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/32810
        * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
        conversions from DECL_INITIAL.
        (fold_const_aggregate_ref): Likewise from constructor elements.

        * gcc.dg/tree-ssa/ssa-ccp-18.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-18.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ccp.c


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]