[LLVMbugs] [Bug 19959] New: Use sys/param.h as an endianness fallback

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 5 13:50:22 PDT 2014


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

            Bug ID: 19959
           Summary: Use sys/param.h as an endianness fallback
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: taralx at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

lib/builtins/int_endianness.h doesn't compile on platforms other than those it
particularly handles.

On most platforms I tested, sys/param.h provides BYTE_ORDER == LITTLE_ENDIAN or
BIG_ENDIAN. That should be used as a fallback instead of just failing blindly.

-- 
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/20140605/fda36ce6/attachment.html>


More information about the llvm-bugs mailing list