diff --git a/make/launcher/Launcher-jdk.pack.gmk b/make/launcher/Launcher-jdk.pack.gmk index 1f95b64cfa7..21c3713e7dc 100644 --- a/make/launcher/Launcher-jdk.pack.gmk +++ b/make/launcher/Launcher-jdk.pack.gmk @@ -22,6 +22,9 @@ # or visit www.oracle.com if you need additional information or have any # questions. # +# =========================================================================== +# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved +# =========================================================================== include LauncherCommon.gmk @@ -39,7 +42,7 @@ $(eval $(call SetupBuildLauncher, pack200, \ # On Mac, we have always exported all symbols, probably due to oversight # and/or misunderstanding. To emulate this, don't hide any symbols # by default. -# On AIX/xlc we need at least xlc 13.1 for the symbol hiding +# On AIX/xlc we need at least xlc 13.1 for the symbol hiding (see JDK-8214063) # Also provide an override for non-conformant libraries. ifeq ($(TOOLCHAIN_TYPE), gcc) CXXFLAGS_JDKEXE += -fvisibility=hidden @@ -50,10 +53,6 @@ else ifeq ($(TOOLCHAIN_TYPE), clang) endif else ifeq ($(TOOLCHAIN_TYPE), solstudio) CXXFLAGS_JDKEXE += -xldscope=hidden -else ifeq ($(TOOLCHAIN_TYPE), xlc) - ifneq ($(CC_VERSION_NUMBER), 12.1) - CXXFLAGS_JDKEXE += -qvisibility=hidden - endif endif UNPACKEXE_SRC := $(TOPDIR)/src/jdk.pack/share/native/common-unpack \ diff --git a/make/launcher/LauncherCommon.gmk b/make/launcher/LauncherCommon.gmk index 836ac50fa29..878682b85fc 100644 --- a/make/launcher/LauncherCommon.gmk +++ b/make/launcher/LauncherCommon.gmk @@ -22,6 +22,9 @@ # or visit www.oracle.com if you need additional information or have any # questions. # +# =========================================================================== +# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved +# =========================================================================== include JdkNativeCompilation.gmk @@ -45,7 +48,7 @@ endif # On Mac, we have always exported all symbols, probably due to oversight # and/or misunderstanding. To emulate this, don't hide any symbols # by default. -# On AIX/xlc we need at least xlc 13.1 for the symbol hiding +# On AIX/xlc we need at least xlc 13.1 for the symbol hiding (see JDK-8214063) # Also provide an override for non-conformant libraries. ifeq ($(TOOLCHAIN_TYPE), gcc) LAUNCHER_CFLAGS += -fvisibility=hidden @@ -56,10 +59,6 @@ else ifeq ($(TOOLCHAIN_TYPE), clang) endif else ifeq ($(TOOLCHAIN_TYPE), solstudio) LAUNCHER_CFLAGS += -xldscope=hidden -else ifeq ($(TOOLCHAIN_TYPE), xlc) - ifneq ($(CC_VERSION_NUMBER), 12.1) - CXXFLAGS_JDKEXE += -qvisibility=hidden - endif endif LAUNCHER_SRC := $(TOPDIR)/src/java.base/share/native/launcher diff --git a/make/lib/LibCommon.gmk b/make/lib/LibCommon.gmk index 7e25925c7d1..dad5e6d4c6c 100644 --- a/make/lib/LibCommon.gmk +++ b/make/lib/LibCommon.gmk @@ -22,6 +22,9 @@ # or visit www.oracle.com if you need additional information or have any # questions. # +# =========================================================================== +# (c) Copyright IBM Corp. 2019, 2019 All Rights Reserved +# =========================================================================== include JdkNativeCompilation.gmk @@ -38,7 +41,7 @@ WIN_JAVA_LIB := $(SUPPORT_OUTPUTDIR)/native/java.base/libjava/java.lib # On Mac, we have always exported all symbols, probably due to oversight # and/or misunderstanding. To emulate this, don't hide any symbols # by default. -# On AIX/xlc we need at least xlc 13.1 for the symbol hiding +# On AIX/xlc we need at least xlc 13.1 for the symbol hiding (see JDK-8214063) # Also provide an override for non-conformant libraries. ifeq ($(TOOLCHAIN_TYPE), gcc) CFLAGS_JDKLIB += -fvisibility=hidden @@ -55,12 +58,6 @@ else ifeq ($(TOOLCHAIN_TYPE), solstudio) CFLAGS_JDKLIB += -xldscope=hidden CXXFLAGS_JDKLIB += -xldscope=hidden EXPORT_ALL_SYMBOLS := -xldscope=global -else ifeq ($(TOOLCHAIN_TYPE), xlc) - ifneq ($(CC_VERSION_NUMBER), 12.1) - CFLAGS_JDKLIB += -qvisibility=hidden - CXXFLAGS_JDKLIB += -qvisibility=hidden - EXPORT_ALL_SYMBOLS := -qvisibility=default - endif endif ################################################################################ diff --git a/src/java.base/share/native/libjimage/NativeImageBuffer.cpp b/src/java.base/share/native/libjimage/NativeImageBuffer.cpp index 21bfde37267..ffd8a153f70 100644 --- a/src/java.base/share/native/libjimage/NativeImageBuffer.cpp +++ b/src/java.base/share/native/libjimage/NativeImageBuffer.cpp @@ -28,11 +28,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* - * =========================================================================== - * (c) Copyright IBM Corp. 2018, 2018 All Rights Reserved - * =========================================================================== - */ + #include #include "jni.h" @@ -45,16 +41,6 @@ #include "jimage.hpp" #include "osSupport.hpp" -#if defined(__xlC__) && (__xlC__ >= 0x0d01) -/* - * Version 13.1.3 of xlc seems to have trouble parsing the `__attribute__` - * annotation in the generated header file we're about to include. Repeating - * the forward declaration (without the braces) here avoids the diagnostic: - * 1540-0040 (S) The text "void" is unexpected. "visibility" may be undeclared or ambiguous. - */ -extern "C" JNIEXPORT jobject JNICALL Java_jdk_internal_jimage_NativeImageBuffer_getNativeMap(JNIEnv *, jclass, jstring); -#endif - #include "jdk_internal_jimage_NativeImageBuffer.h" diff --git a/src/java.base/unix/native/include/jni_md.h b/src/java.base/unix/native/include/jni_md.h index 9de37a16805..5e117da2e8b 100644 --- a/src/java.base/unix/native/include/jni_md.h +++ b/src/java.base/unix/native/include/jni_md.h @@ -23,12 +23,6 @@ * questions. */ -/* - * =========================================================================== - * (c) Copyright IBM Corp. 2018, 2018 All Rights Reserved - * =========================================================================== - */ - #ifndef _JAVASOFT_JNI_MD_H_ #define _JAVASOFT_JNI_MD_H_ @@ -43,9 +37,6 @@ #define JNIEXPORT __attribute__((visibility("default"))) #define JNIIMPORT __attribute__((visibility("default"))) #endif -#elif defined(__xlC__) && (__xlC__ >= 0x0d01) /* xlc version 13.1 or better required */ - #define JNIEXPORT __attribute__((visibility("default"))) - #define JNIIMPORT __attribute__((visibility("default"))) #else #define JNIEXPORT #define JNIIMPORT