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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to