[llvm-bugs] [Bug 25511] New: Clang3.6 compile error: definition of builtin function, while gcc4.8 pass

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 12 13:28:10 PST 2015


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

            Bug ID: 25511
           Summary: Clang3.6 compile error: definition of builtin
                    function, while gcc4.8 pass
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: derrick at ca.ibm.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

It seems Clang doesn't like the definition of the builtin, as followed. 
File 1.cpp:

int __builtin_eh_return_data_regno(int i)
{
  return 0;
}

int main()
{
   return 0;
}


gcc compile, success:
$g++ -c 1.cpp -o test.o

clang compile, Failure:
clang++ -c 1.cpp -fno-builtin -o test.o
1.cpp:1:5: error: definition of builtin function
'__builtin_eh_return_data_regno'
int __builtin_eh_return_data_regno(int i)
    ^
1 error generated.

-- 
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/20151112/1bddb626/attachment.html>


More information about the llvm-bugs mailing list