This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa] function parameter shadowed by local variable in opencl-lang.c
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, "ken dot werner at de dot ibm dot com" <ken dot werner at de dot ibm dot com>
- Date: Sat, 26 Feb 2011 15:26:43 -0800
- Subject: Re: [rfa] function parameter shadowed by local variable in opencl-lang.c
- References: <4D698B92.3070309@vmware.com>
Michael Snyder wrote:
Probably this wasn't intentional?
Oops, another instance of the same thing:
Index: opencl-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/opencl-lang.c,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 opencl-lang.c
--- opencl-lang.c 21 Feb 2011 15:53:10 -0000 1.7
+++ opencl-lang.c 26 Feb 2011 23:26:07 -0000
@@ -264,10 +264,10 @@ lval_func_check_validity (const struct v
for (i = start; i < end; i++)
{
int startoffset = (i == start) ? startrest : 0;
- int length = (i == end) ? endrest : elsize;
+ int length2 = (i == end) ? endrest : elsize;
if (!value_bits_valid (c->val, c->indices[i] * elsize + startoffset,
- length))
+ length2))
return 0;
}
@@ -318,11 +318,11 @@ lval_func_check_synthetic_pointer (const
for (i = start; i < end; i++)
{
int startoffset = (i == start) ? startrest : 0;
- int length = (i == end) ? endrest : elsize;
+ int length2 = (i == end) ? endrest : elsize;
if (!value_bits_synthetic_pointer (c->val,
c->indices[i] * elsize + startoffset,
- length))
+ length2))
return 0;
}