From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14999 invoked by alias); 3 Sep 2012 08:32:51 -0000 Received: (qmail 14990 invoked by uid 22791); 3 Sep 2012 08:32:49 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mms2.broadcom.com (HELO mms2.broadcom.com) (216.31.210.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Sep 2012 08:32:33 +0000 Received: from [10.9.200.133] by mms2.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.5)); Mon, 03 Sep 2012 01:30:56 -0700 X-Server-Uuid: 4500596E-606A-40F9-852D-14843D8201B2 Received: from mail-irva-13.broadcom.com (10.11.16.103) by IRVEXCHHUB02.corp.ad.broadcom.com (10.9.200.133) with Microsoft SMTP Server id 8.2.247.2; Mon, 3 Sep 2012 01:31:42 -0700 Received: from [10.177.72.87] (unknown [10.177.72.87]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 410CF9F9F9; Mon, 3 Sep 2012 01:32:19 -0700 (PDT) Message-ID: <50446B13.6020503@broadcom.com> Date: Mon, 03 Sep 2012 08:32:00 -0000 From: "Andrew Burgess" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: gdb-patches@sourceware.org cc: "Eli Zaretskii" , jan.kratochvil@redhat.com Subject: Re: PATCH: error reading variable: value has been optimized out References: <50376F3B.1080407@broadcom.com> <20120826171840.GA21205@host2.jankratochvil.net> <504092C0.2000602@broadcom.com> <83harip386.fsf@gnu.org> In-Reply-To: <83harip386.fsf@gnu.org> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit 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: 2012-09/txt/msg00010.txt.bz2 On 01/09/2012 9:16 AM, Eli Zaretskii wrote: >> Date: Fri, 31 Aug 2012 11:32:32 +0100 >> From: "Andrew Burgess" >> cc: "Jan Kratochvil" >> >> On 26/08/2012 6:18 PM, Jan Kratochvil wrote: >>> I agree with the fix but it should have GDB-testsuite compatible testcase. >>> Also FYI it is only for backward compatibility with old GCCs. >> >> Included a test case (below) that covers 4 different cases, all of >> which are currently broken in different ways. > > Thank you for doing this. > >> [...] but as gcc is no longer creating examples like this I think we can accept the more limited solution I originally suggessted, if that's ok. > > "No longer creating" since what version of GCC? I have to confess this statement is based on something Jan said in his first reply: On 26/08/2012 6:18 PM, Jan Kratochvil wrote: > Newer GCCs do not say anything is in callee-clobberred register when inside the > call, being more correct and making it easier for GDB: I haven't confirmed this, but don't doubt it :) Cheers, Andrew