From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27062 invoked by alias); 26 Feb 2011 23:24:10 -0000 Received: (qmail 27053 invoked by uid 22791); 26 Feb 2011 23:24:09 -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-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Feb 2011 23:24:03 +0000 Received: from mailhost3.vmware.com (mailhost3.vmware.com [10.16.27.45]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 75F8713015; Sat, 26 Feb 2011 15:24:02 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost3.vmware.com (Postfix) with ESMTP id 6B8C7CD94D; Sat, 26 Feb 2011 15:24:02 -0800 (PST) Message-ID: <4D698B92.3070309@vmware.com> Date: Sat, 26 Feb 2011 23:26: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: [rfa] function parameter shadowed by local variable in opencl-lang.c Content-Type: multipart/mixed; boundary="------------000601090209080106080409" 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/msg00813.txt.bz2 This is a multi-part message in MIME format. --------------000601090209080106080409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 35 Probably this wasn't intentional? --------------000601090209080106080409 Content-Type: text/plain; name="shadow.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="shadow.txt" Content-length: 848 2011-02-26 Michael Snyder * opencl-lang.c (lval_func_check_synthetic_pointer): Local variable shadows function parameter. 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:19:10 -0000 @@ -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; } --------------000601090209080106080409--