From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5948 invoked by alias); 21 Oct 2011 03:15:29 -0000 Received: (qmail 5930 invoked by uid 22791); 21 Oct 2011 03:15:28 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GD,TW_RJ,TW_TM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Oct 2011 03:15:15 +0000 From: "anitha.boyapati at atmel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/50816] New: [4.6.1] Discriminators are emitted in DWARF 2 format Date: Fri, 21 Oct 2011 03:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: anitha.boyapati at atmel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg02189.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50816 Bug #: 50816 Summary: [4.6.1] Discriminators are emitted in DWARF 2 format Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: major Priority: P3 Component: debug AssignedTo: unassigned@gcc.gnu.org ReportedBy: anitha.boyapati@atmel.com Created attachment 25566 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25566 testcase to reproduce the bug GCC 4.6.1 emits discriminators even in dwarf2 format. For e.g, $avr-gcc test.c -gstrict-dwarf -S -mmcu=atxmega128a1 -g -gdwarf-2 It gives the following assembly: delay_ms: .LFB0: .file 1 "test.c" .loc 1 3 0 push r28 ... .L5: .loc 1 9 0 std Y+3,__zero_reg__ std Y+4,__zero_reg__ rjmp .L3 .L4: .loc 1 9 0 is_stmt 0 discriminator 2 ldd r24,Y+3 ldd r25,Y+4 ... Version: $ avr-gcc -v Using built-in specs. COLLECT_GCC=c:\Program Files\Atmel\AVR Tools\AVR Toolchain\avr8-gnu-toolchain-de v-win32_x86\bin\avr-gcc.exe COLLECT_LTO_WRAPPER=c:/program files/atmel/avr tools/avr toolchain/avr8-gnu-tool chain-dev-win32_x86/bin/../libexec/gcc/avr/4.6.1/lto-wrapper.exe Target: avr ... Thread model: single gcc version 4.6.1