Skip to content

Commit a593021

Browse files
ishitaR88midronij
authored andcommitted
Remove redundant macros for openxl
Remove __cplusplus macros that are used along with __open_xl__ macros. Signed-off-by: Ishita Ray <ishita.ray@ibm.com>
1 parent f665e2d commit a593021

7 files changed

Lines changed: 11 additions & 11 deletions

File tree

compiler/compile/OSRData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ bool TR_OSRCompilationData::TR_ScratchBufferInfo::operator==(const TR_ScratchBuf
15151515

15161516
#if (defined(TR_HOST_POWER) && defined(TR_TARGET_POWER) \
15171517
|| defined(TR_HOST_S390) && defined(TR_TARGET_S390)) \
1518-
&& (defined(__IBMCPP__) || defined(__open_xl__) && defined(__cplusplus))
1518+
&& (defined(__IBMCPP__) || defined(__open_xl__))
15191519
__attribute__((__noinline__))
15201520
//This tiny function when inlined by xlC 12 or later at -O3 breaks java -version
15211521
//on Power and causes intermittent crashes on z/OS with xlC 2.1.1

compiler/infra/Annotations.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#define OMR_NORETURN _declspec(noreturn)
6565
#elif defined(__GNUC__)
6666
#define OMR_NORETURN __attribute__ ((noreturn))
67-
#elif defined(__IBMCPP__) || defined(__open_xl__) && defined(__cplusplus)
67+
#elif defined(__IBMCPP__) || defined(__open_xl__)
6868
#define OMR_NORETURN __attribute__ ((noreturn))
6969
#else
7070
#warning "Noreturn attribute undefined for this platform."

compiler/runtime/OMRRuntimeAssumptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "runtime/OMRRuntimeAssumptions.hpp"
2323
#include "env/jittypes.h"
2424

25-
#if (defined(__IBMCPP__) || defined(__open_xl__) && defined(__cplusplus)) && !defined(AIXPPC) && !defined(LINUXPPC)
25+
#if (defined(__IBMCPP__) || defined(__open_xl__)) && !defined(AIXPPC) && !defined(LINUXPPC)
2626
#define ASM_CALL __cdecl
2727
#else
2828
#define ASM_CALL

compiler/runtime/Runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
TR_RuntimeHelperTable runtimeHelpers;
2525

26-
#if (defined(__IBMCPP__) || defined(__IBMC__) && !defined(MVS)) && !defined(LINUXPPC64) || defined(__open_xl__)
26+
#if (defined(__IBMCPP__) || defined(__IBMC__) || defined(__open_xl__) && !defined(MVS)) && !defined(LINUXPPC64)
2727
#if defined(AIXPPC)
2828
#define JIT_HELPER(x) extern "C" void *x
2929
#else

configure

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3770,9 +3770,9 @@ if [ "$OMR_ENV_OPENXL" == "1" ]; then
37703770
do
37713771
CC="$ac_save_CC $ac_arg"
37723772
if ac_fn_c_try_compile "$LINENO"; then :
3773-
ac_cv_prog_cc_c89=$ac_arg
3774-
fi
3775-
rm -f core conftest.err conftest.$ac_objext
3773+
ac_cv_prog_cc_c89=$ac_arg
3774+
fi
3775+
rm -f core conftest.err conftest.$ac_objext
37763776
test "x$ac_cv_prog_cc_c89" != "xno" && break
37773777
done
37783778
else
@@ -3782,8 +3782,8 @@ else
37823782
CC="$ac_save_CC $ac_arg"
37833783
if ac_fn_c_try_compile "$LINENO"; then :
37843784
ac_cv_prog_cc_c89=$ac_arg
3785-
fi
3786-
rm -f core conftest.err conftest.$ac_objext
3785+
fi
3786+
rm -f core conftest.err conftest.$ac_objext
37873787
test "x$ac_cv_prog_cc_c89" != "xno" && break
37883788
done
37893789
fi

include_core/AtomicSupport.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class VM_AtomicSupport
509509
#if defined(__GNUC__)
510510
return (uint64_t)__sync_lock_test_and_set(address, newValue);
511511
#elif (defined(__xlC__)) /* defined(__GNUC__) */
512-
#if ((__xlC__ > 0x0d01) || ((__xlC__ == 0x0d01) && (__xlC_ver__ >= 0x00000300))) /* XLC >= 13.1.3 OR OpenXL */
512+
#if ((__xlC__ > 0x0d01) || ((__xlC__ == 0x0d01) && (__xlC_ver__ >= 0x00000300))) /* XLC >= 13.1.3 */
513513
return (uint64_t)__fetch_and_swaplp((volatile unsigned long *)address, (unsigned long)newValue);
514514
#else /* ((__xlC__ > 0x0d01) || ((__xlC__ == 0x0d01) && (__xlC_ver__ >= 0x00000300))) */
515515
return (uint64_t)__fetch_and_swaplp((volatile long *)address, (long)newValue);

include_core/omrcomp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ typedef double SYS_FLOAT;
237237
* xlC11 C++ compiler reportedly supports attributes before function names, but we've only tested xlC12.
238238
* The C compiler doesn't support it.
239239
*/
240-
#if defined(__cplusplus) && (__xlC__ >= 0xc00)
240+
#if defined(__cplusplus) && (__xlC__ >= 0xc00)
241241
#define VMINLINE_ALWAYS inline __attribute__((always_inline))
242242
#endif
243243
#endif /* __xlC__ */

0 commit comments

Comments
 (0)