diff options
author | Nicolas Trangez <ikke@nicolast.be> | 2022-10-30 20:34:57 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-11-02 12:06:48 -0400 |
commit | 81a5843333c9121b055b13907794a8afe24cd747 (patch) | |
tree | 82f9e7368cc4845fd3f999fab9b0022a88727489 /rts/include | |
parent | f963865452187eb7637fddcdfcd2f506ff1f34cf (diff) | |
download | haskell-81a5843333c9121b055b13907794a8afe24cd747.tar.gz |
rts: introduce (and use) `STG_USED`
Similar to `STG_UNUSED`, have a specific macro for
`__attribute__(used)`.
Diffstat (limited to 'rts/include')
-rw-r--r-- | rts/include/Stg.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/include/Stg.h b/rts/include/Stg.h index 26010db7b6..8e36bf6fab 100644 --- a/rts/include/Stg.h +++ b/rts/include/Stg.h @@ -220,6 +220,7 @@ #endif #define STG_UNUSED GNUC3_ATTRIBUTE(__unused__) +#define STG_USED GNUC3_ATTRIBUTE(__used__) /* Prevent functions from being optimized. See Note [Windows Stack allocations] */ |