diff options
author | Gabriel Dos Reis <gdr@axiomatics.org> | 2017-12-27 04:38:07 -0800 |
---|---|---|
committer | Gabriel Dos Reis <gdr@axiomatics.org> | 2017-12-27 04:38:07 -0800 |
commit | 83ff2c1707b3c1e304feb2127503d9878b05fa9d (patch) | |
tree | 06cadddd637ba9474bfacc2b14c18d1ebafe0def /config | |
parent | d16f9a090321f1ec1e8b20f1fb30859bf93cea46 (diff) | |
download | open-axiom-83ff2c1707b3c1e304feb2127503d9878b05fa9d.tar.gz |
Remove antiquated check for alignas
C++14 required, alignas and alignof are now well supported as C++11
features.
Diffstat (limited to 'config')
-rw-r--r-- | config/open-axiom.m4 | 42 | ||||
-rw-r--r-- | config/openaxiom-c-macros.h.in | 6 |
2 files changed, 0 insertions, 48 deletions
diff --git a/config/open-axiom.m4 b/config/open-axiom.m4 index 0736da35..2397ab78 100644 --- a/config/open-axiom.m4 +++ b/config/open-axiom.m4 @@ -1161,46 +1161,6 @@ if test x"$ac_cv_header_sys_mman_h" = xyes; then fi ]) -dnl ---------------------------------- -dnl -- OPENAXIOM_ALIGNMENT_OPERATOR -- -dnl ---------------------------------- -dnl Check that the C/C++ compiler understand -dnl alignment operator, i.e. either `alignof', -dnl or vendor lock-ins such as `__alignof'. -AC_DEFUN([OPENAXIOM_ALIGNMENT_OPERATOR],[ -AC_MSG_CHECKING([name of alignment query operator]) -oa_alignment= -AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int a = alignof(int);]])], - [oa_alignment="alignof"], - [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int a = __alignof(int);]])], - [oa_alignment="__alignof"], - [AC_MSG_ERROR([C++ compiler does not support alignment query operator])])]) -if test -n $oa_alignment -a $oa_alignment != "alignof"; then - AC_DEFINE_UNQUOTED([alignof],[$oa_alignment],[Alignment query operator]) -fi -AC_MSG_RESULT([$oa_alignment]) -]) - -dnl --------------------------------- -dnl -- OPENAXIOM_ALIGNAS_SPECIFIER -- -dnl --------------------------------- -dnl check for alignment specifier support. -dnl Vendor lock-ins are of the attribute form. -AC_DEFUN([OPENAXIOM_ALIGNAS_SPECIFIER],[ -AC_MSG_CHECKING([alignment boundary specifier syntax]) -oa_alignas= -AC_COMPILE_IFELSE([AC_LANG_SOURCE([[alignas(16) int a = 42;]])], - [oa_alignas="alignas(N)"], - [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[__attribute__((__aligned__(16))) int a = 42;]])], - [oa_alignas="__attribute__((__aligned__(N)))"], - [AC_MSG_ERROR([C++ compiler does not support alignment specifier])])]) -if test -n $oa_alignas -a $oa_alignas != "alignas"; then - AC_DEFINE_UNQUOTED([alignas(N)],[$oa_alignas],[Alignment specifier operator]) -fi -AC_MSG_RESULT([$oa_alignas]) -]) - - dnl ------------------------- dnl -- OPENAXIOM_CHECK_GMP -- dnl ------------------------- @@ -1213,8 +1173,6 @@ dnl -------------------------- dnl -- OPENAXIOM_CHECK_MISC -- dnl -------------------------- AC_DEFUN([OPENAXIOM_CHECK_MISC],[ -OPENAXIOM_ALIGNMENT_OPERATOR -OPENAXIOM_ALIGNAS_SPECIFIER case $oa_cxx_compiler_lineage in gnu|clang) CFLAGS="$CFLAGS -O2 -Wall" diff --git a/config/openaxiom-c-macros.h.in b/config/openaxiom-c-macros.h.in index 0ec30abc..c054cc0d 100644 --- a/config/openaxiom-c-macros.h.in +++ b/config/openaxiom-c-macros.h.in @@ -226,10 +226,4 @@ /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES -/* Alignment specifier operator */ -#undef alignas - -/* Alignment query operator */ -#undef alignof - #endif // OPENAXIOM_CONFIG_included |