summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/include/Stg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/include/Stg.h b/rts/include/Stg.h
index 209db1b0f5..5849de32c1 100644
--- a/rts/include/Stg.h
+++ b/rts/include/Stg.h
@@ -263,8 +263,8 @@ typedef StgFunPtr F_;
#define EB_(X) extern const char X[]
#define IB_(X) static const char X[]
/* static (non-heap) closures (requires alignment for pointer tagging): */
-#define EC_(X) extern StgWordArray (X) GNU_ATTRIBUTE(aligned (8))
-#define IC_(X) static StgWordArray (X) GNU_ATTRIBUTE(aligned (8))
+#define EC_(X) extern StgWordArray (X) GNU_ATTRIBUTE(aligned (SIZEOF_VOID_P))
+#define IC_(X) static StgWordArray (X) GNU_ATTRIBUTE(aligned (SIZEOF_VOID_P))
/* writable data (does not require alignment): */
#define ERW_(X) extern StgWordArray (X)
#define IRW_(X) static StgWordArray (X)