Skip to content

Commit

Permalink
Merge pull request #7039 from vsebe/v0.16.0-release
Browse files Browse the repository at this point in the history
(v0.16.0) Enable XLC 16.1 Clang-based toolchain for AIX platforms
  • Loading branch information
pshipton authored Sep 10, 2019
2 parents c577be8 + 745bfad commit fc4e03a
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 13 deletions.
4 changes: 2 additions & 2 deletions buildenv/jenkins/variables/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ ppc64_aix:
8: 'PATH+XLC=/opt/IBM/xlC/13.1.3/bin:/opt/IBM/xlc/13.1.3/bin'
11: 'PATH+XLC=/opt/IBM/xlC/13.1.3/bin:/opt/IBM/xlc/13.1.3/bin'
12: 'PATH+XLC=/opt/IBM/xlC/13.1.3/bin:/opt/IBM/xlc/13.1.3/bin'
13: 'PATH+XLC=/opt/IBM/xlC/13.1.3/bin:/opt/IBM/xlc/13.1.3/bin'
next: 'PATH+XLC=/opt/IBM/xlC/13.1.3/bin:/opt/IBM/xlc/13.1.3/bin'
13: 'PATH+XLC=/opt/IBM/xlC/16.1.0/bin:/opt/IBM/xlc/16.1.0/bin CC=xlclang CXX=xlclang++'
next: 'PATH+XLC=/opt/IBM/xlC/16.1.0/bin:/opt/IBM/xlc/16.1.0/bin CC=xlclang CXX=xlclang++'
excluded_tests:
8:
? special.system
Expand Down
4 changes: 2 additions & 2 deletions buildspecs/aix_ppc-64.spec
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<property name="uma_make_cmd_cc" value="xlc_r"/>
<property name="uma_make_cmd_cpp" value="$(CC) -P"/>
<property name="uma_make_cmd_cxx" value="xlC_r"/>
<property name="uma_make_cmd_cxx_dll_ld" value="$(CC)"/>
<property name="uma_make_cmd_cxx_exe_ld" value="$(CC)"/>
<property name="uma_make_cmd_cxx_dll_ld" value="$(CXX)"/>
<property name="uma_make_cmd_cxx_exe_ld" value="$(CXX)"/>
<property name="uma_make_cmd_dll_ld" value="$(CC)"/>
<property name="uma_make_cmd_exe_ld" value="$(CC)"/>
<property name="uma_make_cmd_ppc_gcc_cxx" value="g++"/>
Expand Down
4 changes: 2 additions & 2 deletions buildspecs/aix_ppc-64_cmprssptrs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<property name="uma_make_cmd_cc" value="xlc_r"/>
<property name="uma_make_cmd_cpp" value="$(CC) -P"/>
<property name="uma_make_cmd_cxx" value="xlC_r"/>
<property name="uma_make_cmd_cxx_dll_ld" value="$(CC)"/>
<property name="uma_make_cmd_cxx_exe_ld" value="$(CC)"/>
<property name="uma_make_cmd_cxx_dll_ld" value="$(CXX)"/>
<property name="uma_make_cmd_cxx_exe_ld" value="$(CXX)"/>
<property name="uma_make_cmd_dll_ld" value="$(CC)"/>
<property name="uma_make_cmd_exe_ld" value="$(CC)"/>
<property name="uma_make_cmd_ppc_gcc_cxx" value="c++"/>
Expand Down
4 changes: 2 additions & 2 deletions buildspecs/aix_ppc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-excepti
<property name="uma_make_cmd_cc" value="xlc_r"/>
<property name="uma_make_cmd_cpp" value="$(CC) -P"/>
<property name="uma_make_cmd_cxx" value="xlC_r"/>
<property name="uma_make_cmd_cxx_dll_ld" value="$(CC)"/>
<property name="uma_make_cmd_cxx_exe_ld" value="$(CC)"/>
<property name="uma_make_cmd_cxx_dll_ld" value="$(CXX)"/>
<property name="uma_make_cmd_cxx_exe_ld" value="$(CXX)"/>
<property name="uma_make_cmd_dll_ld" value="$(CC)"/>
<property name="uma_make_cmd_exe_ld" value="$(CC)"/>
<property name="uma_make_cmd_ppc_gcc_cxx" value="g++"/>
Expand Down
16 changes: 14 additions & 2 deletions runtime/compiler/build/toolcfg/aix-xlc/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ CX_DEFINES+=\
CX_FLAGS+=\
-qarch=$(CX_ARCH) \
-qtls \
-qnotempinc \
-qenum=small \
-qmbcs \
-qlanglvl=extended0x \
-qfuncsect \
-qsuppress=1540-1087:1540-1088:1540-1090:1540-029:1500-029 \
Expand Down Expand Up @@ -114,6 +112,20 @@ ifeq ($(BUILD_CONFIG),prod)
CX_FLAGS+=$(CX_FLAGS_PROD)
endif

ifeq (,$(findstring xlclang,$(notdir $(CC))))
# xlc options
CX_FLAGS+=-qnotempinc -qmbcs
else
# xlclang
CX_FLAGS+=-qxlcompatmacros
SPP_FLAGS+=-qlanglvl=extc99
endif

ifneq (,$(findstring xlclang++,$(notdir $(CXX))))
# xlclang++ options
CXX_FLAGS+=-fno-rtti
endif

C_CMD?=$(CC)
C_INCLUDES=$(PRODUCT_INCLUDES)
C_DEFINES+=$(CX_DEFINES) $(CX_DEFINES_EXTRA) $(C_DEFINES_EXTRA)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ CONFIGURE_ARGS += 'CC=$(CC)'
CONFIGURE_ARGS += 'CXX=$(CXX)'
CONFIGURE_ARGS += 'CCLINKEXE=$$(CC)'
CONFIGURE_ARGS += 'CCLINKSHARED=ld'
CONFIGURE_ARGS += 'CXXLINKEXE=$$(CC)'
CONFIGURE_ARGS += 'CXXLINKEXE=$$(CXX)'
CONFIGURE_ARGS += 'CXXLINKSHARED=makeC++SharedLib_r'
CONFIGURE_ARGS += 'AR=$(AR)'

Expand Down
20 changes: 18 additions & 2 deletions runtime/makelib/targets.mk.aix.inc.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,31 @@ ifdef I5_VERSION
else
CFLAGS += -s $(UMA_CC_MODE)
endif
CFLAGS += -q mbcs -qlanglvl=extended -qarch=ppc -qinfo=pro -qalias=noansi -qxflag=LTOL:LTOL0 -qsuppress=1506-1108

ifeq (,$(findstring xlclang,$(notdir $(CC))))
# xlc options
CFLAGS += -q mbcs -qlanglvl=extended -qinfo=pro
else
# xlclang options
CFLAGS += -qlanglvl=extended0x -qxlcompatmacros
endif
CFLAGS += -qarch=ppc -qalias=noansi -qxflag=LTOL:LTOL0 -qsuppress=1506-1108
CFLAGS += -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -DRS6000 -DAIXPPC -D_LARGE_FILES

ifdef I5_VERSION
CXXFLAGS += $(UMA_CC_MODE)
else
CXXFLAGS += -s $(UMA_CC_MODE)
endif
CXXFLAGS += -q mbcs -qlanglvl=extended -qarch=ppc -qinfo=pro -qalias=noansi -qxflag=LTOL:LTOL0 -qsuppress=1506-1108

ifeq (,$(findstring xlclang++,$(notdir $(CXX))))
# xlc++ options
CXXFLAGS += -q mbcs -qlanglvl=extended -qinfo=pro
else
# xlclang++ options
CXXFLAGS += -qlanglvl=extended0x -qxlcompatmacros -fno-rtti -fno-exceptions
endif
CXXFLAGS += -qarch=ppc -qalias=noansi -qxflag=LTOL:LTOL0 -qsuppress=1506-1108
CXXFLAGS += -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -DRS6000 -DAIXPPC -D_LARGE_FILES
CPPFLAGS += -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE -DRS6000 -DAIXPPC -D_LARGE_FILES

Expand Down

0 comments on commit fc4e03a

Please sign in to comment.