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: unassignedclangb...@nondot.org
          Reporter: derr...@ca.ibm.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to