From f1104b92249005a31961d1a32c38ba65a0b3ff3a Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 25 Apr 2016 16:46:46 +0900 Subject: Fix for HPPA. * configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): Revert. * src/gen-posix-lock-obj.c (USE_16BYTE_ALIGNMENT): Revert. * src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h: Revert. -- Signed-off-by: NIIBE Yutaka This fixes commit 5168b97. I considered wrongly that long double were 128-bit in HPPA. Currently, all that we can do for HPPA is assuming GCC and use its extension of "aligned" attribute. --- configure.ac | 22 ++++++++++++++++++++++ src/gen-posix-lock-obj.c | 13 ++++++++++--- src/syscfg/lock-obj-pub.hppa-unknown-linux-gnu.h | 2 +- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 6d25b51..566ea62 100644 --- a/configure.ac +++ b/configure.ac @@ -273,6 +273,20 @@ if test "$GCC" = yes; then fi fi +# +# Check whether the compiler supports the GCC style aligned attribute +# +AC_CACHE_CHECK([whether the GCC style aligned attribute is supported], + [gcry_cv_gcc_attribute_aligned], + [gcry_cv_gcc_attribute_aligned=no + AC_COMPILE_IFELSE([AC_LANG_SOURCE( + [[struct { int a; } foo __attribute__ ((aligned (16)));]])], + [gcry_cv_gcc_attribute_aligned=yes])]) +if test "$gcry_cv_gcc_attribute_aligned" = "yes" ; then + AC_DEFINE(HAVE_GCC_ATTRIBUTE_ALIGNED,1, + [Defined if a GCC style "__attribute__ ((aligned (n))" is supported]) +fi + # # Check for ELF visibility support. # @@ -544,3 +558,11 @@ echo " Revision: mym4_revision (mym4_revision_dec) Platform: $host$tmp " +if test "$gcry_cv_gcc_attribute_aligned" != "yes" ; then +cat <