This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR22303, CCP not handling reads from constant strings
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 May 2006 11:14:58 -0400
- Subject: Re: [PATCH] Fix PR22303, CCP not handling reads from constant strings
- References: <Pine.LNX.4.64.0605091430530.4599@nyjnma.fhfr.qr>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard Guenther wrote on 05/09/06 08:33:
> PR tree-optimization/22303
> * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
> from STRING_CSTs.
> (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
> ccp_fold did not simplify the statement.
>
> * gcc.dg/tree-ssa/ssa-ccp-13.c: New testcase.
>
OK.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEaexyUTa2oAUaiwQRArK0AJwN637gzX/v6pewMt0fo83XNXWUhgCgosGr
GGeuJYeocIqC8lF0KFXcDoc=
=HPjR
-----END PGP SIGNATURE-----