This is the mail archive of the gcc-patches@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]

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.


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