Commits on Source (20)
-
d45d8cb3
-
Since we don't intend to ever change the incoming string, declare this to be true. Also, in the POSIX implementation, the argument is no longer `STG_UNUSED` (since ee0deb80) in any code path. See: ee0deb80 (comment 460080)
8ee8b418 -
Since, unlike the code in ee0deb80^, usage of the `name` value passed to `createOSThread` now outlives said function's lifetime, and could hence be released by the caller by the time the new thread runs `start_thread`, it needs to be copied. See: ee0deb80 (comment 460080) See: !9066
13b5f102 -
Since ee0deb80, the use of `pthread_setname_np` on Darwin was fixed when invoking `createOSThread`. However, the 'ticker' has some thread-creation code which doesn't rely on `createOSThread`, yet also uses `pthread_setname_np`. This patch enforces all thread creation to go through a single function, which uses the (correct) thread-naming code introduced in ee0deb80. See: ee0deb80 See: #22206 See: !9066
edd175c9 -
b7a00113
-
Before this patch, when converting from TH.Exp to LHsExpr GhcPs, the compiler inserted more parentheses than required: ((f a) (b + c)) d This was happening because the LHS of the function application was parenthesized as if it was the RHS. Now we use funPrec and appPrec appropriately and produce sensibly parenthesized expressions: f a (b + c) d I also took the opportunity to remove the special case for LamE, which was not special at all and simply duplicated code.
30e625e6 -
Ticket #22379 revealed that skolemiseQuantifiedTyVar was dropping the passed-in skol_info on the floor when it encountered a SkolemTv. Bad! Several TyCons thereby share a single SkolemInfo on their binders, which lead to bogus error reports.
0560821f -
38d19668
-
Ryan Scott offered a cut-down repro case (60 lines instead of more than 700 lines)
77e24902 -
4521f649
-
Instead of sprinkling the codebase with `GNU(C3)_ATTRIBUTE(__noreturn__)`, add a `STG_NORETURN` macro (for, basically, the same thing) similar to `STG_UNUSED` and others, and update the code to use this macro where applicable.
cb526568 -
635d10c3
-
Similar to `STG_UNUSED`, have a specific macro for `__attribute__(used)`.
bd624f51 -
Instead of using `GNUC3_ATTRIBUTE(__malloc__)`, provide a `STG_MALLOC` macro definition and use it instead.
b252de9e -
f887c5bc
-
This patch adds a new `STG_MALLOC1` macro (and its counterpart `STG_MALLOC2` for completeness) which allows to specify the deallocation function to be used with allocations of allocating functions, and applies it to `stg*allocBytes`. It also fixes a case where `free` was used to free up an `stgMallocBytes` allocation, found by the above change. See: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-malloc-function-attribute See: #22381
6bcaa7c2 -
This patch adds the `STG_ALLOC_SIZE1` and `STG_ALLOC_SIZE2` macros which allow to set the `alloc_size` attribute on functions, when available. See: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-alloc_005fsize-function-attribute See: #22381
1b4ddc11 -
See: #22381
3cbeacec -
e437f7a1
Showing
- compiler/GHC/CmmToAsm/X86/CodeGen.hs 1 addition, 16 deletionscompiler/GHC/CmmToAsm/X86/CodeGen.hs
- compiler/GHC/CmmToAsm/X86/Ppr.hs 1 addition, 23 deletionscompiler/GHC/CmmToAsm/X86/Ppr.hs
- compiler/GHC/Driver/Main.hs 3 additions, 3 deletionscompiler/GHC/Driver/Main.hs
- compiler/GHC/Driver/Session.hs 1 addition, 1 deletioncompiler/GHC/Driver/Session.hs
- compiler/GHC/Tc/Gen/HsType.hs 2 additions, 0 deletionscompiler/GHC/Tc/Gen/HsType.hs
- compiler/GHC/Tc/TyCl.hs 60 additions, 50 deletionscompiler/GHC/Tc/TyCl.hs
- compiler/GHC/Tc/Utils/TcMType.hs 11 additions, 11 deletionscompiler/GHC/Tc/Utils/TcMType.hs
- compiler/GHC/Tc/Utils/TcType.hs 1 addition, 1 deletioncompiler/GHC/Tc/Utils/TcType.hs
- compiler/GHC/ThToHs.hs 6 additions, 10 deletionscompiler/GHC/ThToHs.hs
- compiler/GHC/Unit/Env.hs 1 addition, 0 deletionscompiler/GHC/Unit/Env.hs
- compiler/GHC/Unit/Module/WholeCoreBindings.hs 2 additions, 2 deletionscompiler/GHC/Unit/Module/WholeCoreBindings.hs
- docs/users_guide/phases.rst 4 additions, 4 deletionsdocs/users_guide/phases.rst
- libraries/ghc-prim/GHC/Types.hs 2 additions, 1 deletionlibraries/ghc-prim/GHC/Types.hs
- rts/CloneStack.c 1 addition, 1 deletionrts/CloneStack.c
- rts/Heap.c 1 addition, 1 deletionrts/Heap.c
- rts/Hpc.c 1 addition, 1 deletionrts/Hpc.c
- rts/Linker.c 1 addition, 1 deletionrts/Linker.c
- rts/RtsAPI.c 2 additions, 2 deletionsrts/RtsAPI.c
- rts/RtsFlags.c 2 additions, 2 deletionsrts/RtsFlags.c
- rts/RtsMessages.c 3 additions, 3 deletionsrts/RtsMessages.c