[Git][ghc/ghc][wip/marge_bot_batch_merge_job] rts: don't enforce aligned((8)) on 32-bit targets
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Wed Oct 5 19:29:55 UTC 2022
Marge Bot pushed to branch wip/marge_bot_batch_merge_job at Glasgow Haskell Compiler / GHC
Commits:
d37a28ed by Cheng Shao at 2022-10-05T15:29:39-04:00
rts: don't enforce aligned((8)) on 32-bit targets
We simply need to align to the word size for pointer tagging to work. On
32-bit targets, aligned((8)) is wasteful.
- - - - -
1 changed file:
- rts/include/Stg.h
Changes:
=====================================
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)
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d37a28ed92d0f540e104ddbc9f13decb5bcb5927
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d37a28ed92d0f540e104ddbc9f13decb5bcb5927
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221005/54811ad8/attachment.html>
More information about the ghc-commits
mailing list