[LLVMbugs] [Bug 20958] New: Conflicting types for '__builtin_isnan' on Android/ARM

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 16 02:52:51 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: eugeni.stepanov at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140916/b6aa8847/attachment.html>


More information about the llvm-bugs mailing list