[LLVMbugs] [Bug 21515] New: .cfi_adjust_cfa_offset not reset across .cfi_endproc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 7 07:47:37 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21515

            Bug ID: 21515
           Summary: .cfi_adjust_cfa_offset not reset across .cfi_endproc
           Product: new-bugs
           Version: 3.4
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: rth at twiddle.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat z.s
    .cfi_startproc
    nop
    .cfi_adjust_cfa_offset 4
    .cfi_endproc

    .cfi_startproc
    nop
    .cfi_adjust_cfa_offset 4
    .cfi_endproc
$ cc -c z.s
$ readelf -wf z.o 
The section .eh_frame contains:

00000000 00000014 00000000 CIE
  Version:               1
  Augmentation:          "zR"
  Code alignment factor: 1
  Data alignment factor: -4
  Return address column: 8
  Augmentation data:     1b

  DW_CFA_def_cfa: r4 ofs 4
  DW_CFA_offset: r8 at cfa-4
  DW_CFA_nop
  DW_CFA_nop

00000018 00000010 0000001c FDE cie=00000000 pc=00000000..00000001
  DW_CFA_advance_loc: 1 to 00000001
  DW_CFA_def_cfa_offset: 8

0000002c 00000010 00000030 FDE cie=00000000 pc=00000001..00000002
  DW_CFA_advance_loc: 1 to 00000002
  DW_CFA_def_cfa_offset: 12

The 12 on the last line should be 8.

FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: i386-unknown-freebsd10.1
Thread model: posix
Selected GCC installation:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141107/43fd5c42/attachment.html>


More information about the llvm-bugs mailing list