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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to