aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libatomic/acinclude.m4
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-03-29 22:30:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-03-29 22:30:35 +0000
commitaec28b44e467a139d5f5cefe038e3f4a30dfc478 (patch)
tree683ea6a4fdd09801ee89dbb792e4c2d43d394795 /gcc-4.9/libatomic/acinclude.m4
parent859df16485d512e69b529f57a9c747107dec23bc (diff)
parent41c11c2a743ea85be67d0840dbbb6d5125bb8798 (diff)
downloadtoolchain_gcc-aec28b44e467a139d5f5cefe038e3f4a30dfc478.tar.gz
toolchain_gcc-aec28b44e467a139d5f5cefe038e3f4a30dfc478.tar.bz2
toolchain_gcc-aec28b44e467a139d5f5cefe038e3f4a30dfc478.zip
Merge "Add top-level flag, --enable-libatomic-ifuncs=[yes/no]"
Diffstat (limited to 'gcc-4.9/libatomic/acinclude.m4')
-rw-r--r--gcc-4.9/libatomic/acinclude.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc-4.9/libatomic/acinclude.m4 b/gcc-4.9/libatomic/acinclude.m4
index a86e52b4f..34db650be 100644
--- a/gcc-4.9/libatomic/acinclude.m4
+++ b/gcc-4.9/libatomic/acinclude.m4
@@ -197,6 +197,11 @@ AC_DEFUN([LIBAT_CHECK_IFUNC], [
void *foo_sel(void) { return foo_alt; }
int foo(void) __attribute__((ifunc("foo_sel")));],
[return foo();], libat_cv_have_ifunc=yes, libat_cv_have_ifunc=no)])
+
+ if test $enable_libatomic_ifuncs = no; then
+ libat_cv_have_ifunc=no
+ fi
+
LIBAT_DEFINE_YESNO([HAVE_IFUNC], [$libat_cv_have_ifunc],
[Define to 1 if the target supports __attribute__((ifunc(...))).])
])