[LLVMbugs] [Bug 16954] New: ret %eax "using an undefined physical register"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 21 01:31:41 PDT 2013


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

            Bug ID: 16954
           Summary: ret %eax "using an undefined physical register"
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rzg at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11077
  --> http://llvm.org/bugs/attachment.cgi?id=11077&action=edit
Reduced test case.

On r188867, using the attached reduced test case, Clang dies with the following
error:

*** Bad machine code: Using an undefined physical register ***
- function:    _Z18read_response_sizev
- basic block: BB#7 if.end (0x7fb7388f0010)
- instruction: RET %EAX; dbg:<unknown>:33
- operand 0:   %EAX

The command used to compile is

clang -cc1 -emit-obj -gdwarf-2 -O1 -fsanitize=address,init-order
-stack-protector 1 -x c++ main.cpp

The operating system is OS X, x86_64.

-- 
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/20130821/be42e887/attachment.html>


More information about the llvm-bugs mailing list