Commits on Source (6)
-
Fixes #19914
8da0880c -
We used to reject LHS like `(f a) b` in RULES and requires it to be written as `f a b`. It will be handy to allow both as the expression may be more readable with extra parens in some cases when infix operator is involved. Espceially when TemplateHaskell is used, extra parens may be added out of user's control and result in "valid" rules being rejected and there are not always ways to workaround it. Fixes #24621
c8adfbd1 -
Instead of encoding the closure type as decimal string we now simply represent it as an integer, eliminating the need for `Read` in `GHC.Internal.InfoProv.Types.peekInfoProv`. Closes #24504. ------------------------- Metric Decrease: T24602_perf_size size_hello_artifact -------------------------
7f6fe46e -
This patch fixes compilation of testwsdeque.c with recent versions of clang, which will fail with the error below: ``` testwsdeque.c:95:33: error: warning: format specifies type 'long' but the argument has type 'void *' [-Wformat] 95 | barf("FAIL: %ld %d %d", p, n, val); | ~~~ ^ testwsdeque.c:95:39: error: warning: format specifies type 'int' but the argument has type 'StgWord' (aka 'unsigned long') [-Wformat] 95 | barf("FAIL: %ld %d %d", p, n, val); | ~~ ^~~ | %lu testwsdeque.c:133:42: error: error: incompatible function pointer types passing 'void (void *)' to parameter of type 'OSThreadProc *' (aka 'void *(*)(void *)') [-Wincompatible-function-pointer-types] 133 | createOSThread(&ids[n], "thief", thief, (void*)(StgWord)n); | ^~~~~ /workspace/ghc/_build/stage1/lib/../lib/x86_64-linux-ghc-9.11.20240502/rts-1.0.2/include/rts/OSThreads.h:193:51: error: note: passing argument to parameter 'startProc' here 193 | OSThreadProc *startProc, void *param); | ^ 2 warnings and 1 error generated. ```
73194949 -
Small clean up. Uses proper names for the various groups of arguments that make up the pre-processor invocation.
ccb7f242 -
9ded5312
Showing
- compiler/GHC/Cmm.hs 1 addition, 1 deletioncompiler/GHC/Cmm.hs
- compiler/GHC/CmmToAsm/AArch64/RegInfo.hs 2 additions, 4 deletionscompiler/GHC/CmmToAsm/AArch64/RegInfo.hs
- compiler/GHC/CmmToAsm/Monad.hs 14 additions, 1 deletioncompiler/GHC/CmmToAsm/Monad.hs
- compiler/GHC/CmmToAsm/X86/Instr.hs 1 addition, 1 deletioncompiler/GHC/CmmToAsm/X86/Instr.hs
- compiler/GHC/Rename/Module.hs 11 additions, 0 deletionscompiler/GHC/Rename/Module.hs
- compiler/GHC/StgToCmm/InfoTableProv.hs 3 additions, 4 deletionscompiler/GHC/StgToCmm/InfoTableProv.hs
- compiler/GHC/SysTools/Tasks.hs 9 additions, 8 deletionscompiler/GHC/SysTools/Tasks.hs
- libraries/ghc-heap/cbits/Stack.cmm 2 additions, 2 deletionslibraries/ghc-heap/cbits/Stack.cmm
- libraries/ghc-internal/src/GHC/Internal/InfoProv/Types.hsc 8 additions, 6 deletionslibraries/ghc-internal/src/GHC/Internal/InfoProv/Types.hsc
- rts/IPE.c 5 additions, 1 deletionrts/IPE.c
- rts/Trace.c 4 additions, 1 deletionrts/Trace.c
- rts/eventlog/EventLog.c 5 additions, 2 deletionsrts/eventlog/EventLog.c
- rts/include/rts/Constants.h 7 additions, 0 deletionsrts/include/rts/Constants.h
- rts/include/rts/IPE.h 8 additions, 2 deletionsrts/include/rts/IPE.h
- testsuite/tests/rename/should_compile/T24621_normal.hs 12 additions, 0 deletionstestsuite/tests/rename/should_compile/T24621_normal.hs
- testsuite/tests/rename/should_compile/T24621_th.hs 12 additions, 0 deletionstestsuite/tests/rename/should_compile/T24621_th.hs
- testsuite/tests/rename/should_compile/all.T 2 additions, 0 deletionstestsuite/tests/rename/should_compile/all.T
- testsuite/tests/rts/ipe/ipeEventLog.stderr 20 additions, 20 deletionstestsuite/tests/rts/ipe/ipeEventLog.stderr
- testsuite/tests/rts/ipe/ipeEventLog_fromMap.stderr 20 additions, 20 deletionstestsuite/tests/rts/ipe/ipeEventLog_fromMap.stderr
- testsuite/tests/rts/ipe/ipeMap.c 5 additions, 2 deletionstestsuite/tests/rts/ipe/ipeMap.c