1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Add alignment for Sun Studio 12

This commit is contained in:
Dagobert Michelsen 2012-02-06 09:45:41 +01:00 committed by Andy Wingo
parent 3fabb2d2be
commit 5e33d0aa37

View file

@ -126,7 +126,8 @@
/* The SCM_ALIGNED macro, when defined, can be used to instruct the compiler /* The SCM_ALIGNED macro, when defined, can be used to instruct the compiler
* to honor the given alignment constraint. */ * to honor the given alignment constraint. */
#if defined __GNUC__ /* Sun Studio supports alignment since Sun Studio 12 */
#if defined __GNUC__ || (defined( __SUNPRO_C ) && (__SUNPRO_C - 0 >= 0x590))
# define SCM_ALIGNED(x) __attribute__ ((aligned (x))) # define SCM_ALIGNED(x) __attribute__ ((aligned (x)))
#elif defined __INTEL_COMPILER #elif defined __INTEL_COMPILER
# define SCM_ALIGNED(x) __declspec (align (x)) # define SCM_ALIGNED(x) __declspec (align (x))