Commit Graph

8 Commits

Author SHA1 Message Date
Brad King 9fdfe07411 KWIML: Teach ABI about 'long long' on older GNU
Old GNU compilers do not define __SIZEOF_LONG_LONG__ or
__LONG_LONG_MAX__ but do provide a 64-bit 'long long' type.

Suggested-by: Rolf Eike Beer <eike@sf-mail.de>
2013-01-08 15:31:13 -05:00
Riku Voipio 349165223d KWIML: Teach ABI.h about Aarch64
The __aarch64__ defines Aarch64, while __AARCH64EB__ defines bigendian
and __AARCH64EL__ little endian.  Only little endian tested, no big
endian toolchain exists yet.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2012-12-21 08:27:29 -05:00
Thomas Klausner 415623581d KWIML: Teach ABI.h that VAX is big endian 2012-10-25 07:53:32 -04:00
Brad King 6dc053114b KWIML: Teach ABI.h about 'long long' and 'char' on old HP
The "HP92453-01 A.11.01.20 HP C Compiler" does not define any
identifying macros except for platform __hpux.  If we see that platform
with no other compiler identification then assume this compiler.  It has
'long long' and its 'char' is signed unless the +uc option is added.
2012-06-21 08:03:47 -04:00
Modestas Vainius aabf65a073 KWIML: Teach ABI.h that MIPS is biendian
MIPS machines are biendian hence they can run both big endian kernels
e.g. Debian mips architecture, and little endian kernels e.g. Debian
mipsel architecture.  Use predefined macros to distinguish them.
2012-02-20 09:43:36 -05:00
Brad King ae7cf91b13 KWIML: Teach ABI.h about PGI compiler
The PGI compiler appears to define "long long" as size 8 but does not
provide a feature macro for it.  It does provide options for the
signedness of char (-Mschar, -Muchar) but does not define a feature
macro indicating the choice.  The default is signed, at least on Linux.
2011-11-18 13:46:22 -05:00
Brad King 9ccd639ad7 KWIML: Ignore _LONGLONG on MS compiler
The VS 7.0 header <yvals.h> included by most C++ system headers defines
the macro _LONGLONG as __int64.  Teach ABI.h to ignore the definition in
this case because "long long" does not exist.
2011-11-17 10:15:02 -05:00
Brad King 831badeca2 KWIML: The Kitware Information Macro Library
Provides header files that use preprocessor tests to detect and provide
information about the compiler and its target architecture.  The headers
contain no configuration-time test results and thus may be installed
into an architecture-independent include directory.  This makes them
suitable for use in the public interface of any package.
2011-06-27 14:04:32 -04:00