Use configure test for aligned attribute.
authorWerner Koch <wk@gnupg.org>
Wed, 21 Nov 2012 10:47:35 +0000 (11:47 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 21 Nov 2012 10:47:35 +0000 (11:47 +0100)
commit6368ed542150956ff4ba8170a15bbc534143675c
tree2388176fc6735fbdd1a8c2f0dae01fabe8047c43
parenta96974de734beb51a733a89b3283bcf7b433b54c
Use configure test for aligned attribute.

* configure.ac (HAVE_GCC_ATTRIBUTE_ALIGNED): New test and ac_define.
* cipher/cipher-internal.h, cipher/rijndael.c, random/rndhw.c: Use new
macro instead of a fixed test for __GNUC__.
--

We assume that compilers that grok "__attribute__ ((aligned (16)))"
implement that in the same way as gcc does.  In case it turns out
that this is not the case we will need to do two more things: Detect
such different behaviour and come up with a construct to allows the
use of that other style of alignment forcing.
cipher/cipher-internal.h
cipher/rijndael.c
configure.ac
random/rndhw.c