From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13197 invoked by alias); 20 Oct 2011 21:11:26 -0000 Received: (qmail 13182 invoked by uid 22791); 20 Oct 2011 21:11:25 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 Oct 2011 21:11:09 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id BD98CCB0351; Thu, 20 Oct 2011 23:11:09 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wIaGTfIDhySl; Thu, 20 Oct 2011 23:11:00 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id F01BCCB0257; Thu, 20 Oct 2011 23:10:59 +0200 (CEST) From: Eric Botcazou To: Anitha Boyapati Subject: Re: GCC 4.6.1 emits discriminators in DWARF2 mode Date: Fri, 21 Oct 2011 06:20:00 -0000 User-Agent: KMail/1.9.9 Cc: gcc@gcc.gnu.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201110202307.01159.ebotcazou@adacore.com> Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg00373.txt.bz2 > Firstly, aren't discriminators introduced in DWARF 4? Little more > digging shows that the following fix is missing in 4.6.1 release. It > breaks the current dwarf2 parsers/readers. I think it is worth filing > a bug. > > http://gcc.gnu.org/viewcvs/trunk/gcc/dwarf2out.c?r1=171846&r2=171852&diff_f >ormat=h Yes, this is a real nuisance for some DWARF consumers. You need to ask a RM about backporting the fix. > Secondly, in gcc4.5.1, the directive (.loc) is not emitted and still > we are able to map line numbers to address. Please help me understand > how introducing .loc directive affects debug_line format in gcc 4.6.1. .loc directives are processed by the assembler, which then builds .debug_line. -- Eric Botcazou