[LLVMbugs] [Bug 23044] New: [naked function] unable to provide unwind info

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 27 06:58:15 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23044

            Bug ID: 23044
           Summary: [naked function] unable to provide unwind info
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alexandre.martins at stormshield.eu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14107
  --> https://llvm.org/bugs/attachment.cgi?id=14107&action=edit
sample code

The naked function behavior change depending on '-g' flags.
When -g is given, the .cfi_startproc is setted, so i'm able to put unwind unfo.

If I remove the flag, there is no more "stratproc" directive and cause a clang
crash.


$ clang++36 -m32 -g -c check.cpp
$ clang++36 -m32 -c check.cpp
fatal error: error in backend: No open frame
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.6.0 (tags/RELEASE_360/final)
Target: i386-portbld-freebsd10.1
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/check-590ab3.cpp
clang: note: diagnostic msg: /tmp/check-590ab3.sh
clang: note: diagnostic msg: 

********************

-- 
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/20150327/0fd7831f/attachment.html>


More information about the llvm-bugs mailing list