From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5337 invoked by alias); 23 Oct 2014 23:31:09 -0000 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 Received: (qmail 5315 invoked by uid 89); 23 Oct 2014 23:31:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yh0-f44.google.com Received: from mail-yh0-f44.google.com (HELO mail-yh0-f44.google.com) (209.85.213.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 23 Oct 2014 23:31:07 +0000 Received: by mail-yh0-f44.google.com with SMTP id i57so1211416yha.17 for ; Thu, 23 Oct 2014 16:31:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=05U1B3J5zwuW0Pgoos1WSLj2AXmB1OO+ZIiyeC9yFpk=; b=Ew5pJhJ9KVlqGChpPoCoqAZ6frD8zuNTCdH6aQ93swsrQkI9WOqh4UJQi0NJ+l2PwD jI/GNkIfG8136jpTZYcXVrpK3f177/Jkpl+ZSus3P+t2wI5XJ828G7Hn/vlDvAGY9ltP zuECl4h5/EAnmkShsZpwWc8xlp22BaJV6sj/spZbrEdErO/OT40oaJKU0wFxvLodrUSg 6K0F4lJP6WXKqv9lS7yK1rnZgT7Dj/6syvmZLpFe7B8V1/e5cBOpHcmtNs41gq0Np2gx 258zHLQiLoHxhlcMPe1V86MbajObkIfDfY7md79zGCX8vYhBAMmGs39wJ04/PnXnAAaG 1wHQ== X-Gm-Message-State: ALoCoQknmr20kUJw+4k4K/OGKYt1kbHhoSO0U+nRCcFMQ9uYyc3tVUfyU3KwQTwekeoDncpP6izA MIME-Version: 1.0 X-Received: by 10.170.46.202 with SMTP id 193mr595969yko.107.1414107065523; Thu, 23 Oct 2014 16:31:05 -0700 (PDT) Received: by 10.202.197.13 with HTTP; Thu, 23 Oct 2014 16:31:05 -0700 (PDT) In-Reply-To: <201410231609.s9NG9ZvU004472@d06av02.portsmouth.uk.ibm.com> References: <201410231609.s9NG9ZvU004472@d06av02.portsmouth.uk.ibm.com> Date: Thu, 23 Oct 2014 23:31:00 -0000 Message-ID: Subject: Re: [PATCH 0/2] Make chained function calls in expressions work From: Siva Chandra To: Ulrich Weigand Cc: gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00619.txt.bz2 On Thu, Oct 23, 2014 at 9:09 AM, Ulrich Weigand wrote: > In this case, I agree with the rest of your explanation. Please add a > comment in the final version of the patch that explains why the extra > copy is necessary. > > There's just one minor change I think would be good: can we allocate that > extra copy on the stack at least only for *class* types, then? I'd prefer > to avoid this for the common case of routines just returning a scalar. I will soon send a new version of the patch with all the suggested changes in this thread. Thanks, Siva Chandra