This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR14841 and PR15838
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: stevenb at suse dot de
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Aug 04 12:28:03 EDT
- Subject: Re: [PATCH] PR14841 and PR15838
* tree-ssa-ccp.c (try_extract_const_array_ref): New function to
extract a constant from a constant array initializer.
(try_extract_const_component_ref): Likewise for const struct
initializers.
(evaluate_stmt): Use them.
We're duplicating a lot of code from fold-const.c.