summaryrefslogtreecommitdiff
path: root/libgomp/acinclude.m4
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-07 22:48:03 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-01-07 22:48:03 +0000
commit8a75144c232a5339f62f6b2631b14d441b9a6189 (patch)
tree22dccd08d2bc5c5b6e1c2366084c29c8e88922d4 /libgomp/acinclude.m4
parent292add682a552190b183d03502715fc2a4171913 (diff)
downloadgcc-8a75144c232a5339f62f6b2631b14d441b9a6189.tar.gz
PR libgomp/38086
* acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check. * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if HAVE_AS_SYMVER_DIRECTIVE is not defined. * configure: Regenerated. * config.h.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/acinclude.m4')
-rw-r--r--libgomp/acinclude.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/libgomp/acinclude.m4 b/libgomp/acinclude.m4
index f3cd089e537..c6d9c308d9a 100644
--- a/libgomp/acinclude.m4
+++ b/libgomp/acinclude.m4
@@ -298,6 +298,16 @@ if test $enable_symvers = yes; then
fi
fi
+AC_CACHE_CHECK([whether the target supports .symver directive],
+ libgomp_cv_have_as_symver_directive, [
+ AC_TRY_COMPILE([void foo (void); __asm (".symver foo, bar@SYMVER");],
+ [], libgomp_cv_have_as_symver_directive=yes,
+ libgomp_cv_have_as_symver_directive=no)])
+if test $libgomp_cv_have_as_symver_directive = yes; then
+ AC_DEFINE(HAVE_AS_SYMVER_DIRECTIVE, 1,
+ [Define to 1 if the target assembler supports .symver directive.])
+fi
+
AM_CONDITIONAL(LIBGOMP_BUILD_VERSIONED_SHLIB, test $enable_symvers != no)
AC_MSG_NOTICE(versioning on shared library symbols is $enable_symvers)
])