bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/11122] New: C listing line numbers start at 0 but .loc (correct


From: plantz at cds1 dot net
Subject: [Bug gas/11122] New: C listing line numbers start at 0 but .loc (correctly) starts with 1
Date: 31 Dec 2009 17:00:44 -0000

Using
   gcc -O0 -g -Wa,-adhl nada.c > nada.lst
to get gas listing embedded in C source code, C source code lines are numbered
from 0, .loc in gas starts with 1. Previous gas (4.19) started both at 1.

Example:
   1                            .file   "nada.c"
   9                    .Ltext0:
  10                    .globl foo
  12                    foo:
  13                    .LFB0:
  14                            .file 1 "nada.c"
   0:nada.c        **** int foo()
   1:nada.c        **** {
  15                            .loc 1 2 0
  16                            .cfi_startproc
  17 0000 55                    pushq   %rbp
  18                    .LCFI0:
  19                            .cfi_def_cfa_offset 16
  20 0001 4889E5                movq    %rsp, %rbp
  21                            .cfi_offset 6, -16
  22                    .LCFI1:
  23                            .cfi_def_cfa_register 6
   2:nada.c        ****    return 0;
  24                            .loc 1 3 0
  25 0004 B8000000              movl    $0, %eax
  25      00
   3:nada.c        **** }
  26                            .loc 1 4 0
  27 0009 C9                    leave
  28 000a C3                    ret
  29                            .cfi_endproc
  30                    .LFE0:
  32                    .Letext0:

-- 
           Summary: C listing line numbers start at 0 but .loc (correctly)
                    starts with 1
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: plantz at cds1 dot net
                CC: bug-binutils at gnu dot org
  GCC host triplet: GNU assembler version 2.20 (x86_64-linux-gnu) using BFD
                    version


http://sourceware.org/bugzilla/show_bug.cgi?id=11122

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]