зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1295811 - Remove check for __attribute__(aligned()); r=glandium
It was setting ATTRIBUTE_ALIGNED_MAX which hasn't been used for 6 years since 590a7be0e60f (bug 556455) removed its only consumer. MozReview-Commit-ID: HSAql5cUrQH --HG-- extra : rebase_source : 34193d16b6073c5ad13eb4787b876fc3a9266c2b
This commit is contained in:
Родитель
f9df0d3dca
Коммит
0053208f34
|
@ -3163,27 +3163,6 @@ fi
|
|||
|
||||
AC_SUBST(MOZ_RAW)
|
||||
|
||||
dnl Checks for __attribute__(aligned()) directive need by libogg
|
||||
AC_CACHE_CHECK([__attribute__ ((aligned ())) support],
|
||||
[ac_cv_c_attribute_aligned],
|
||||
[ac_cv_c_attribute_aligned=0
|
||||
CFLAGS_save="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -Werror"
|
||||
for ac_cv_c_attr_align_try in 64 32 16 8; do
|
||||
echo "trying $ac_cv_c_attr_align_try"
|
||||
AC_TRY_COMPILE([],
|
||||
[static char c __attribute__ ((aligned(${ac_cv_c_attr_align_try}))) = 0; return c;],
|
||||
[ac_cv_c_attribute_aligned="${ac_cv_c_attr_align_try}"])
|
||||
if test "$ac_cv_c_attribute_aligned" != 0; then
|
||||
break;
|
||||
fi
|
||||
done
|
||||
CFLAGS="${CFLAGS_save}"])
|
||||
if test "${ac_cv_c_attribute_aligned}" != "0"; then
|
||||
AC_DEFINE_UNQUOTED([ATTRIBUTE_ALIGNED_MAX],
|
||||
[${ac_cv_c_attribute_aligned}],[Maximum supported data alignment])
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Apple platform decoder support
|
||||
dnl ========================================================
|
||||
|
|
Загрузка…
Ссылка в новой задаче