From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10056 invoked by alias); 3 Sep 2012 15:38:32 -0000 Received: (qmail 9989 invoked by uid 22791); 3 Sep 2012 15:38:30 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 03 Sep 2012 15:38:00 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M9S00M005Z56H00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Mon, 03 Sep 2012 18:37:58 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9S00MR763A5B10@a-mtaout23.012.net.il>; Mon, 03 Sep 2012 18:37:58 +0300 (IDT) Date: Mon, 03 Sep 2012 15:38:00 -0000 From: Eli Zaretskii Subject: Re: PATCH: error reading variable: value has been optimized out In-reply-to: <20120903112425.GA9954@host2.jankratochvil.net> To: Jan Kratochvil Cc: aburgess@broadcom.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <831uijf76p.fsf@gnu.org> References: <50376F3B.1080407@broadcom.com> <20120826171840.GA21205@host2.jankratochvil.net> <504092C0.2000602@broadcom.com> <83harip386.fsf@gnu.org> <20120903112425.GA9954@host2.jankratochvil.net> 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/msg00020.txt.bz2 > Date: Mon, 3 Sep 2012 13:24:25 +0200 > From: Jan Kratochvil > Cc: Andrew Burgess , gdb-patches@sourceware.org > > On Sat, 01 Sep 2012 10:16:41 +0200, Eli Zaretskii wrote: > > > [...] 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 did not check this specific case but these kinds of registers validity in > general are fixed since FSF GCC 4.5 with the introduction of VTA > (-fvar-tracking-assignments). OK, thanks. I hope it will be possible to support older versions as well. E.g., fencepost.gnu.org has this installed: eliz@fencepost:~$ gcc --version gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.