Browse Source

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.
Brad King 14 years ago
parent
commit
ae7cf91b13
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ABI.h.in

+ 4 - 0
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 */