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: [PTR-PLUS] Fix up forwprop testcase


Andrew Pinski/R&D/SCEA wrote on 05/18/2007 05:46:50 PM:
> 
> Thanks,
> Andrew Pinski
> 
> ChangeLog:
> 
>  * tree-ssa-forwprop.c
>  (forward_propagate_addr_into_variable_array_index):
>  Don't expect there to be a cast for the index as that does not exist 
anymore.
>  (forward_propagate_addr_expr_1): Check for
>  POINTER_PLUS_EXPR instead of PLUS_EXPR.
>  Don't check for the first operand of the
>  POINTER_PLUS_EXPR was the index as it
>  cannot be.
> 
>  * gcc.dg/tree-ssa/forwprop-1.c: New testcase.


And here is the patch which I forgot to include.

Thanks,
Andrew Pinski

Attachment: fixforwprop.diff.txt
Description: Text document


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