diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2020-12-27 16:31:33 +0100 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2020-12-27 16:31:33 +0100 |
commit | e4c896fd159c3533fbaefa538fc6c6189b86bf21 (patch) | |
tree | 408ee7d094d580b53788743aae6800d9ca08db4a /libgfortran | |
parent | 5c36e43e1cf73881514d0b61aeecb83916e79a2b (diff) | |
download | gcc-e4c896fd159c3533fbaefa538fc6c6189b86bf21.zip gcc-e4c896fd159c3533fbaefa538fc6c6189b86bf21.tar.gz gcc-e4c896fd159c3533fbaefa538fc6c6189b86bf21.tar.bz2 |
Fix errors introduced by last commit.
gcc/fortran/ChangeLog:
* trans-array.c (gfc_conv_array_ref): Before discarding offset,
check if this is a coarray and we are building shared coarrays.
* trans-decl.c (gfc_build_builtin_function_decls): Clear up
types for cas_coarray_allocate.
(gfc_trans_shared_coarray): Pass NULL_TREEs to status and
errmsg.
libgfortran/ChangeLog:
* caf_shared/util.h (CAS_DEBUG_PR): New macro.
gcc/testsuite/ChangeLog:
* gfortran.dg/caf-shared/cas.exp: Add -g to debug flags to allow
better backtrace.
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/caf_shared/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/caf_shared/util.h b/libgfortran/caf_shared/util.h index fa9e158..6ae3778 100644 --- a/libgfortran/caf_shared/util.h +++ b/libgfortran/caf_shared/util.h @@ -28,6 +28,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include <pthread.h> #include <limits.h> #include <assert.h> +#include <sys/types.h> +#include <unistd.h> + +#define CAS_DEBUG_PR(str, ...) dprintf(2, "Image %d (pid %ld):\t" str "\n", this_image.image_num, (unsigned long) getpid(), ##__VA_ARGS__) #define PTR_BITS (CHAR_BIT*sizeof(void *)) |