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

            Bug ID: 20958
           Summary: Conflicting types for '__builtin_isnan' on Android/ARM
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

On 32-bit ARM, Android NDK declares __builtin_isnan as
__attribute__((pcs("aapcs"))) - this matches Android libm, which always
implements __builtin_isnan with softfp calling convention.


Clang does not accept such definition.

.../sysroot/usr/include/math.h:527:5: error: conflicting types for
'__builtin_isnan'
int     __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
        ^
.../sysroot/usr/include/math.h:527:5: note: '__builtin_isnan' is a builtin with
type 'int ()'

-- 
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