From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22888 invoked by alias); 21 Sep 2012 09:27:13 -0000 Received: (qmail 22879 invoked by uid 22791); 21 Sep 2012 09:27:12 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Sep 2012 09:26:55 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8L9Qt8g001485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Sep 2012 05:26:55 -0400 Received: from spoyarek (spoyarek.pnq.redhat.com [10.65.192.188]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q8L9Qrjn016468 for ; Fri, 21 Sep 2012 05:26:54 -0400 Date: Fri, 21 Sep 2012 09:27:00 -0000 From: Siddhesh Poyarekar To: gdb-patches@sourceware.org Subject: [obv][commit] Eliminate a single-use variable in eval.c Message-ID: <20120921145611.0dc0d21d@spoyarek> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: 2012-09/txt/msg00428.txt.bz2 Hi, I have committed another small change that eliminates a local variable that is used only once in the function with the direct function call. This is an attempt to make the changes for 64-bit struct offset and length smaller. For a context on those changes, please refer: http://sourceware.org/ml/gdb-patches/2012-08/msg00144.html Regards, Siddhesh http://sourceware.org/ml/gdb-cvs/2012-09/msg00117.html Index: gdb/ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.14683 diff -u -r1.14683 ChangeLog --- gdb/ChangeLog 21 Sep 2012 01:46:39 -0000 1.14683 +++ gdb/ChangeLog 21 Sep 2012 09:23:17 -0000 @@ -1,3 +1,8 @@ +2012-09-21 Siddhesh Poyarekar + + * eval.c (evaluate_subexp_standard): Eliminate single-use + variable LOWER. + 2012-09-21 Yao Qi * mi/mi-interp.c: Declare mi_record_changed. Index: gdb/eval.c =================================================================== RCS file: /cvs/src/src/gdb/eval.c,v retrieving revision 1.171 diff -u -r1.171 eval.c --- gdb/eval.c 16 Aug 2012 07:36:19 -0000 1.171 +++ gdb/eval.c 21 Sep 2012 09:23:18 -0000 @@ -810,7 +810,6 @@ struct type *type; int nargs; struct value **argvec; - int lower; int code; int ix; long mem_offset; @@ -2370,8 +2369,8 @@ struct type *array_type = check_typedef (value_type (array)); LONGEST index = subscript_array[i - 1]; - lower = f77_get_lowerbound (array_type); - array = value_subscripted_rvalue (array, index, lower); + array = value_subscripted_rvalue (array, index, + f77_get_lowerbound (array_type)); }