comparison src/cpu/sparc/vm/jni_sparc.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
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any 22 * or visit www.oracle.com if you need additional information or have any
23 * questions. 23 * questions.
24 */ 24 */
25 25
26 #define JNIEXPORT 26 #if defined(__GNUC__) && (__GNUC__ >= 4)
27 #define JNIIMPORT 27 #define JNIEXPORT __attribute__((visibility("default")))
28 #define JNIIMPORT __attribute__((visibility("default")))
29 #else
30 #define JNIEXPORT
31 #define JNIIMPORT
32 #endif
28 #define JNICALL 33 #define JNICALL
29 34
30 typedef int jint; 35 typedef int jint;
31 36
32 #ifdef _LP64 37 #ifdef _LP64