[llvm-bugs] [Bug 26100] New: clang crashes on valid code at -O1 and above on x86_64-linux-gnu with "function has no frame pointer"

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 9 21:43:42 PST 2016


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

            Bug ID: 26100
           Summary: clang crashes on valid code at -O1 and above on
                    x86_64-linux-gnu with "function has no frame pointer"
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: helloqirun at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The current clang trunk crashes when compiling the following test case on
x86_64-linux-gnu in 64-bit mode.


$ clang-trunk  -v
clang version 3.8.0 (trunk 257159)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64


$ clang-trunk -c -O3 abc.c
fatal error: error in backend: register rbp is allocatable: function has no
frame pointer
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 3.8.0 (trunk 257159)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
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/abc-59e4ae.c
clang: note: diagnostic msg: /tmp/abc-59e4ae.sh
clang: note: diagnostic msg:

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


---------------
$ cat abc.c
register long a asm("rbp");
long b;
void fn1() { b = a; }

-- 
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/20160110/f31f6025/attachment.html>


More information about the llvm-bugs mailing list