From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29109 invoked by alias); 7 Apr 2008 06:31:01 -0000 Received: (qmail 29095 invoked by uid 22791); 7 Apr 2008 06:31:01 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Apr 2008 06:30:35 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m376UWQA008889 for ; Mon, 7 Apr 2008 02:30:32 -0400 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m376UV7E031453 for ; Mon, 7 Apr 2008 02:30:31 -0400 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id m376UTJY031564 for ; Mon, 7 Apr 2008 02:30:30 -0400 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.2/8.14.1) with ESMTP id m376UTnY026908; Mon, 7 Apr 2008 08:30:29 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.2/8.14.2/Submit) id m376URvA026907; Mon, 7 Apr 2008 08:30:27 +0200 Date: Mon, 07 Apr 2008 11:47:00 -0000 From: Jan Kratochvil To: Alan Modra Cc: Ulrich.Weigand@de.ibm.com, gdb-patches@sources.redhat.com Subject: [patch] dw2-ranges.S non-g GAS crash [Re: spu-as internal error] Message-ID: <20080407063027.GA26788@host0.dyn.jankratochvil.net> References: <20080407040340.GF1446@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline In-Reply-To: <20080407040340.GF1446@bubble.grove.modra.org> User-Agent: Mutt/1.5.17 (2007-11-01) 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: 2008-04/txt/msg00132.txt.bz2 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 853 On Mon, 07 Apr 2008 06:03:40 +0200, Alan Modra wrote: > Ulrich Weigand wrote: > > building the file gdb.dwarf2/dw2-ranges.S from the GDB test suite results > > in an internal error in spu-as (current SDK CVS version): > > > > /home/uweigand/fsf/gdb-head/gdb/testsuite/gdb.dwarf2/dw2-ranges.S:40: > > Internal error, aborting at ../../binutils-2.18.50/gas/dwarf2dbg.c line > > 1675 in out_debug_info > > Please report this bug. > > Has this testcase ever assembled? On any target? I think gas would > always have aborted unless you pass -g to gas or supply .file > directives. It was always built just inside `runtest'. Requesting a commit approval. Verified unpatched GDB still FAILs on it. (Still aware / going to post the fix to the STABS regression by this patch: http://sourceware.org/ml/gdb-patches/2007-12/msg00248.html ) Regards, Jan --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="dw2ranges-file.patch" Content-length: 645 2008-04-07 Jan Kratochvil * gdb.dwarf2/dw2-ranges.S: New stub `.file' directive. --- ./gdb/testsuite/gdb.dwarf2/dw2-ranges.S 1 Jan 2008 22:53:19 -0000 1.2 +++ ./gdb/testsuite/gdb.dwarf2/dw2-ranges.S 7 Apr 2008 06:24:13 -0000 @@ -19,6 +19,9 @@ DW_AT_ranges as the linker could place both sections at arbitrary locations. */ + /* Such directive is required by GAS for builds without `-g'. */ + .file 1 "dw2-ranges.S" + /* Without this directive GAS will not emit DWARF2 unless we provide an instruction to assemble. We want to avoid any instructions to remain architecture independent. */ --FCuugMFkClbJLl1L--