From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22598 invoked by alias); 31 Jan 2007 19:12:01 -0000 Received: (qmail 22587 invoked by uid 22791); 31 Jan 2007 19:12:01 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 31 Jan 2007 19:11:55 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id BA286124E4 for ; Wed, 31 Jan 2007 20:11:52 +0100 (CET) From: Andreas Schwab To: gdb-patches@sourceware.org Subject: Re: Testsuite failures in gdb.gdb/selftest.exp References: <20070131171937.GA337@nevyn.them.org> <20070131181921.GA3195@nevyn.them.org> X-Yow: YOW!! I'm in a very clever and adorable INSANE ASYLUM!! Date: Wed, 31 Jan 2007 19:12:00 -0000 In-Reply-To: <20070131181921.GA3195@nevyn.them.org> (Daniel Jacobowitz's message of "Wed, 31 Jan 2007 13:19:21 -0500") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2007-01/txt/msg00621.txt.bz2 Daniel Jacobowitz writes: > On Wed, Jan 31, 2007 at 06:55:36PM +0100, Andreas Schwab wrote: >> On ia64 the address of gdb_stdout/gdb_stderr (together with a few other >> variables) is definitely computed very early in the function. The >> quit_flag case could indeed be an instance of the gcc bug. > > Could you just check in the ia64 bits, then, until you have a chance to > check on PPC? Looking a bit closer the ppc issue is definitely not an instance of the gcc bug. The register that holds the value for quit_flag is set very early in the function. 110: 3b 80 00 00 li r28,0 [...] 160: 3d 60 00 00 lis r11,0 162: R_PPC_ADDR16_HA quit_flag [...] 16c: 93 8b 00 00 stw r28,0(r11) 16e: R_PPC_ADDR16_LO quit_flag Thus the line number information generated by gcc looks correct (address 110 is the first insn after the prologue). Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."