From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29003 invoked by alias); 26 Feb 2011 23:26:49 -0000 Received: (qmail 28995 invoked by uid 22791); 26 Feb 2011 23:26:49 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Feb 2011 23:26:45 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id CAC3A2E004; Sat, 26 Feb 2011 15:26:43 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost4.vmware.com (Postfix) with ESMTP id C2608C9E03; Sat, 26 Feb 2011 15:26:43 -0800 (PST) Message-ID: <4D698C33.9040101@vmware.com> Date: Sat, 26 Feb 2011 23:36:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20101201) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" , "ken.werner@de.ibm.com" Subject: Re: [rfa] function parameter shadowed by local variable in opencl-lang.c References: <4D698B92.3070309@vmware.com> In-Reply-To: <4D698B92.3070309@vmware.com> Content-Type: multipart/mixed; boundary="------------060501060309060801020002" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00814.txt.bz2 This is a multi-part message in MIME format. --------------060501060309060801020002 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 106 Michael Snyder wrote: > Probably this wasn't intentional? > Oops, another instance of the same thing: --------------060501060309060801020002 Content-Type: text/plain; name="shadow2.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="shadow2.txt" Content-length: 1096 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; } --------------060501060309060801020002--