diff options
author | Simon Marlow <simonmarhaskell@gmail.com> | 2008-04-16 23:24:33 +0000 |
---|---|---|
committer | Simon Marlow <simonmarhaskell@gmail.com> | 2008-04-16 23:24:33 +0000 |
commit | e686d8dc6cd67c35132059d0718d1501f0af1e67 (patch) | |
tree | 525f4fa72f168300f63a27c3e322dedb7ed8a9aa /includes | |
parent | a370654a872838c43e63bdd6cc279c0ee9913cdf (diff) | |
download | haskell-e686d8dc6cd67c35132059d0718d1501f0af1e67.tar.gz |
pad step_workspace to 64 bytes, to speed up access to gct->steps[]
Diffstat (limited to 'includes')
-rw-r--r-- | includes/Rts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/Rts.h b/includes/Rts.h index ec84ed9671..1d455f0d6d 100644 --- a/includes/Rts.h +++ b/includes/Rts.h @@ -38,6 +38,12 @@ extern "C" { #define FLEXIBLE_ARRAY 0 #endif +#if __GNUC__ >= 3 +#define ATTRIBUTE_ALIGNED(n) __attribute__((aligned(n))) +#else +#define ATTRIBUTE_ALIGNED(n) /*nothing*/ +#endif + /* Fix for mingw stat problem (done here so it's early enough) */ #ifdef mingw32_HOST_OS #define __MSVCRT__ 1 |