Skip to content

Commit 3a0e8bb

Browse files
committed
Fix check for IBM xl compilers for v13.1 and later.
By default newer xlc compilers only define __ibmxl__ now. https://www.ibm.com/support/knowledgecenter/en/SSXVZZ_13.1.6/com.ibm.xlcpp1316.lelinux.doc/compiler_ref/xlmacros.html Signed-off-by: Austen Lauria <[email protected]>
1 parent e813ad3 commit 3a0e8bb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config/opal_check_vendor.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212
dnl All rights reserved.
1313
dnl Copyright (c) 2012 Oracle and/or its affiliates. All rights reserved.
1414
dnl Copyright (c) 2014 Intel, Inc. All rights reserved
15-
dnl Copyright (c) 2017 IBM Corporation. All rights reserved.
15+
dnl Copyright (c) 2017-2021 IBM Corporation. All rights reserved.
1616
dnl $COPYRIGHT$
1717
dnl
1818
dnl Additional copyrights may follow
@@ -123,7 +123,7 @@ AC_DEFUN([_OPAL_CHECK_COMPILER_VENDOR], [
123123

124124
# IBM XL C/C++
125125
AS_IF([test "$opal_check_compiler_vendor_result" = "unknown"],
126-
[OPAL_IF_IFELSE([defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__)],
126+
[OPAL_IF_IFELSE([defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__)],
127127
[opal_check_compiler_vendor_result="ibm"
128128
xlc_major_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 1`
129129
xlc_minor_version=`$CC -qversion 2>&1 | tail -n 1 | cut -d ' ' -f 2 | cut -d '.' -f 2`

opal/include/opal/opal_portable_platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */
172172
# endif
173173

174-
#elif defined(__xlC__)
174+
#elif defined(__xlC__) || defined(__ibmxl__) || defined(__IBMC__) || defined(__IBMCPP__)
175175
# define PLATFORM_COMPILER_XLC 1
176176
# define PLATFORM_COMPILER_FAMILYNAME XLC
177177
# define PLATFORM_COMPILER_FAMILYID 5

opal/include/opal/sys/powerpc/atomic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2010-2017 IBM Corporation. All rights reserved.
13+
* Copyright (c) 2010-2021 IBM Corporation. All rights reserved.
1414
* Copyright (c) 2015-2018 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* $COPYRIGHT$
@@ -107,7 +107,7 @@ void opal_atomic_isync(void)
107107
*********************************************************************/
108108
#if OPAL_GCC_INLINE_ASSEMBLY
109109

110-
#ifdef __xlC__
110+
#if defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__)
111111
/* work-around bizzare xlc bug in which it sign-extends
112112
a pointer to a 32-bit signed integer */
113113
#define OPAL_ASM_ADDR(a) ((uintptr_t)a)

0 commit comments

Comments
 (0)