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] Fix violation of self-assignment check in GCC source [2/4]


On Thu, Jul 22, 2010 at 3:31 AM, Le-Chun Wu <lcwu@google.com> wrote:
> This patch fix the warning triggered by self-assignment check in
> gcc/tree-ssa-ccp.c. Bootstrapped and tested on x86_64-gnu-linux. OK
> for trunk?

Ok.

Thanks,
Richard.

> Thanks,
>
> Le-chun
>
> 2010-07-21 ?Le-Chun Wu ?<lcwu@google.com>
>
> ? ? ? * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
> ? ? ? and an unnecessary assignment.
>
>
>
> Index: gcc/tree-ssa-ccp.c
> ===================================================================
> --- gcc/tree-ssa-ccp.c ?(revision 162385)
> +++ gcc/tree-ssa-ccp.c ?(working copy)
> @@ -730,9 +730,8 @@ ccp_lattice_meet (prop_value_t *val1, pr
> ? ? ? ? Ci M Cj = VARYING ? ? ?if (i != j)
>
> ? ? ? ? ?If these two values come from memory stores, make sure that
> - ? ? ? ?they come from the same memory reference. ?*/
> - ? ? ?val1->lattice_val = CONSTANT;
> - ? ? ?val1->value = val1->value;
> + ? ? ? ?they come from the same memory reference.
> + ? ? ? ? Nothing to do. ?VAL1 already contains the value we want. ?*/
> ? ? }
> ? else
> ? ? {
>


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