This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/26001, expand messing up the index for a string constant
- From: Roger Sayle <roger at eyesopen dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 31 Jan 2006 15:56:35 -0700 (MST)
- Subject: Re: [PATCH] Fix PR middle-end/26001, expand messing up the index for a string constant
On Tue, 31 Jan 2006, Andrew Pinski wrote:
> * expr.c (expand_expr_real_1) <case ARRAY_REF>:
> Use the corrected index for the character
> out of the string constant.
>
> * gfortran.dg/data_char_2.f90: New test.
This is OK for mainline. Once it has baked on mainline for a few
days without problems we'll have a better feel for what to do about
the gcc-4_1-branch. To give Mark options, you might also bootstrap
and regression test a patch to revert the change that introduced
this regression.
Thanks,
Roger
--