[LLVMbugs] [Bug 16712] New: Difference in treating with __builtin declratations
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jul 26 01:09:42 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16712
Bug ID: 16712
Summary: Difference in treating with __builtin declratations
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: stpworld at narod.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Example:
extern int abs(int __i);
#define abs(__i) __builtin_abs(__i)
int
abs(int x)
{
return (x < 0) ? -x : x;
}
Is compiled with gcc, while clang emits error:
abc.c:5:1: error: definition of builtin function '__builtin_abs'
abs(int x)
abc.c:2:18: note: expanded from macro 'abs'
#define abs(__i) __builtin_abs(__i)
--
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/20130726/36874c97/attachment.html>
More information about the llvm-bugs
mailing list