[vlc-commits] configure: remove ATTRIBUTE_ALIGNED_MAX test
Rémi Denis-Courmont
git at videolan.org
Sun Feb 26 21:00:26 CET 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 26 21:56:44 2017 +0200| [756d29b1436204a2abfe2c8fe2228ff0f9ad6390] | committer: Rémi Denis-Courmont
configure: remove ATTRIBUTE_ALIGNED_MAX test
This is no longer used.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=756d29b1436204a2abfe2c8fe2228ff0f9ad6390
---
configure.ac | 17 -----------------
include/vlc_fixups.h | 7 -------
2 files changed, 24 deletions(-)
diff --git a/configure.ac b/configure.ac
index 89f497f..c0e0714 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1099,23 +1099,6 @@ AC_CACHE_CHECK([if linker supports -z,defs], [ac_cv_ld_z_defs], [
])
AS_IF([test "${ac_cv_ld_z_defs}" = "no"], [VLC_RESTORE_FLAGS])
-dnl Checks for __attribute__(aligned()) directive
-VLC_SAVE_FLAGS
-CFLAGS="${CFLAGS} -Werror"
-AC_CACHE_CHECK([__attribute__ ((aligned ())) support],
- [ac_cv_c_attribute_aligned],
- [ac_cv_c_attribute_aligned=0
- for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
- 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}"])
- done])
-VLC_RESTORE_FLAGS
-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 Check for __attribute__((packed))
AC_CACHE_CHECK([for __attribute__((packed))],
[ac_cv_c_attribute_packed],
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 30fc0bd..eff661d 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -311,13 +311,6 @@ static inline locale_t newlocale(int mask, const char * locale, locale_t base)
# define static_assert _Static_assert
#endif
-/* Alignment of critical static data structures */
-#ifdef ATTRIBUTE_ALIGNED_MAX
-# define ATTR_ALIGN(align) __attribute__ ((__aligned__ ((ATTRIBUTE_ALIGNED_MAX < align) ? ATTRIBUTE_ALIGNED_MAX : align)))
-#else
-# define ATTR_ALIGN(align)
-#endif
-
/* libintl support */
#define _(str) vlc_gettext (str)
#define N_(str) gettext_noop (str)
More information about the vlc-commits
mailing list