re PR c/50347 (unexpected -Wconversion error from gcc builtin)
[gcc.git] / libatomic / acinclude.m4
index 65d9a22514120d445170a0ea05fd225a021524d8..a86e52b4ff4b172b6df27cbf76db6885c7e76280 100644 (file)
@@ -67,7 +67,7 @@ AC_DEFUN([LIBAT_TEST_ATOMIC_BUILTIN],[
     else
       old_CFLAGS="$CFLAGS"
       # Compile unoptimized.
-      CFLAGS='-O0 -S'
+      CFLAGS="$CFLAGS -O0 -S"
       if AC_TRY_EVAL(ac_compile); then
         if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
          eval $2=no
@@ -185,10 +185,11 @@ AC_DEFUN([LIBAT_WORDSIZE],[
 ])
 
 dnl
-dnl Check whether the target supports ifuncs.
+dnl Check whether the target supports the ifunc attribute.
 dnl
 AC_DEFUN([LIBAT_CHECK_IFUNC], [
-  AC_CACHE_CHECK([whether the target supports funcs], libat_cv_have_ifunc, [
+  AC_CACHE_CHECK([whether the target supports the ifunc attribute],
+                libat_cv_have_ifunc, [
   save_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS -Werror"
   AC_TRY_LINK([