public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/50816] New: [4.6.1] Discriminators are emitted in DWARF 2 format
@ 2011-10-21  3:15 anitha.boyapati at atmel dot com
  2011-10-21  3:17 ` [Bug debug/50816] " anitha.boyapati at atmel dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: anitha.boyapati at atmel dot com @ 2011-10-21  3:15 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-10-28 21:43 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-21  3:15 [Bug debug/50816] New: [4.6.1] Discriminators are emitted in DWARF 2 format anitha.boyapati at atmel dot com
2011-10-21  3:17 ` [Bug debug/50816] " anitha.boyapati at atmel dot com
2011-10-21  3:21 ` anitha.boyapati at atmel dot com
2011-10-21 13:08 ` anitha.boyapati at atmel dot com
2011-10-23 10:23 ` anitha.boyapati at atmel dot com
2011-10-23 22:48 ` gjl at gcc dot gnu.org
2011-10-23 22:50 ` gjl at gcc dot gnu.org
2011-10-24  4:19 ` anitha.boyapati at atmel dot com
2011-10-24  4:21 ` anitha.boyapati at atmel dot com
2011-10-24 11:53 ` gjl at gcc dot gnu.org
2011-10-24 18:10 ` jakub at gcc dot gnu.org
2011-10-25  2:31 ` anitha.boyapati at atmel dot com
2011-10-25  2:34 ` anitha.boyapati at atmel dot com
2011-10-25  8:06 ` jakub at gcc dot gnu.org
2011-10-28 21:43 ` gjl at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).