Blacklist PGI from using conformant array parameters. (#511)

* Blacklist PGI from using conformant array parameters.

There is a bug in pgcc with conformant array parameters where the
length argument is a pointer which triggers a compiler error
(PGC-S-0094, to be specific).  The issue has been reported to PGI and
is being tracked internally as TPR 23778.  For more information, see

  https://www.pgroup.com/userforum/viewtopic.php?t=5501

* travis: Add PGI Community Edition build.

For details on the installation script, see
https://github.com/nemequ/pgi-travis
This commit is contained in:
Evan Nemerson 2017-02-19 01:06:13 -08:00 committed by Eugene Kliuchnikov
parent 53366083e0
commit d03c38da7f
3 changed files with 14 additions and 1 deletions

View File

@ -21,6 +21,13 @@ case "$1" in
;;
esac
;;
"linux")
case "${CC}" in
"pgcc")
wget -q -O /dev/stdout 'https://raw.githubusercontent.com/nemequ/pgi-travis/master/install-pgi.sh' | /bin/sh
;;
esac
;;
esac
;;
"script")

View File

@ -118,6 +118,12 @@ matrix:
packages:
- clang-3.5
###
## PGI Community Edition on Linux
###
- os: linux
env: BUILD_SYSTEM=cmake C_COMPILER=pgcc CXX_COMPILER=pgc++
###
## Python build on Linux
###

View File

@ -81,7 +81,7 @@ typedef void* (*brotli_alloc_func)(void* opaque, size_t size);
typedef void (*brotli_free_func)(void* opaque, void* address);
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
!defined(__cplusplus)
!defined(__cplusplus) && !defined(__PGI)
#define BROTLI_ARRAY_PARAM(L) L
#else
#define BROTLI_ARRAY_PARAM(L)