Mercurial > hg > graal-jvmci-8
comparison src/cpu/x86/vm/jni_x86.h @ 2191:d70fe6ab4436
6588413: Use -fvisibility=hidden for gcc compiles
Summary: Add option for gcc 4 and above, define JNIEXPORT and JNIIMPORT to visibility=default, add for jio_snprintf and others since -fvisibility=hidden overrides --version-script definitions.
Reviewed-by: kamg, never
author | coleenp |
---|---|
date | Tue, 01 Feb 2011 11:23:19 -0500 |
parents | f95d63e2154a |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2177:3582bf76420e | 2191:d70fe6ab4436 |
---|---|
25 | 25 |
26 #ifndef _JAVASOFT_JNI_MD_H_ | 26 #ifndef _JAVASOFT_JNI_MD_H_ |
27 #define _JAVASOFT_JNI_MD_H_ | 27 #define _JAVASOFT_JNI_MD_H_ |
28 | 28 |
29 #if defined(SOLARIS) || defined(LINUX) | 29 #if defined(SOLARIS) || defined(LINUX) |
30 | |
31 #if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2) | |
32 #define JNIEXPORT __attribute__((visibility("default"))) | |
33 #define JNIIMPORT __attribute__((visibility("default"))) | |
34 #else | |
30 #define JNIEXPORT | 35 #define JNIEXPORT |
31 #define JNIIMPORT | 36 #define JNIIMPORT |
37 #endif | |
38 | |
32 #define JNICALL | 39 #define JNICALL |
33 | |
34 typedef int jint; | 40 typedef int jint; |
35 | 41 |
36 #ifdef _LP64 | 42 #ifdef _LP64 |
37 typedef long jlong; | 43 typedef long jlong; |
38 #else | 44 #else |