From ae7cf91b1376cc313dc39e41c7d3e2026ac79b6b Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 18 Nov 2011 13:46:22 -0500 Subject: 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. --- ABI.h.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ABI.h.in b/ABI.h.in index 0ec6d0e..e95a4ff 100644 --- a/ABI.h.in +++ b/ABI.h.in @@ -148,6 +148,8 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined. # define @KWIML@_ABI_CHAR_IS_SIGNED 1 # elif defined(_SGI_COMPILER_VERSION) /* SGI MIPSpro default */ # define @KWIML@_ABI_CHAR_IS_UNSIGNED 1 +# elif defined(__PGIC__) /* PGI default */ +# define @KWIML@_ABI_CHAR_IS_SIGNED 1 # elif defined(_MSC_VER) /* MSVC default */ # define @KWIML@_ABI_CHAR_IS_SIGNED 1 # elif defined(__WATCOMC__) /* Watcom default */ @@ -231,6 +233,8 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined. # define @KWIML@_ABI_SIZEOF_LONG_LONG 8 # elif defined(__HP_cc) || defined(__HP_aCC) /* HP */ # define @KWIML@_ABI_SIZEOF_LONG_LONG 8 +# elif defined(__PGIC__) /* PGI */ +# define @KWIML@_ABI_SIZEOF_LONG_LONG 8 # elif defined(__WATCOMC__) /* Watcom */ # define @KWIML@_ABI_SIZEOF_LONG_LONG 8 # elif defined(__INTEL_COMPILER) /* Intel */ -- cgit v0.12