Zubin pushed to branch ghc-9.12 at Glasgow Haskell Compiler / GHC
Commits:
-
bd923b84
by Ben Gamari at 2025-12-09T12:32:43+05:30
-
85edfeb1
by Zubin Duggal at 2025-12-09T12:35:05+05:30
-
65621219
by Zubin Duggal at 2025-12-09T22:32:33+05:30
4 changed files:
- m4/fp_settings.m4
- rts/linker/PEi386.c
- utils/haddock/haddock-api/haddock-api.cabal
- utils/haddock/haddock.cabal
Changes:
| ... | ... | @@ -85,6 +85,19 @@ AC_DEFUN([FP_SETTINGS], |
| 85 | 85 | SettingsWindresCommand="$WindresCmd"
|
| 86 | 86 | fi
|
| 87 | 87 | |
| 88 | + # Fallback values for LLVM tools. See #26209.
|
|
| 89 | + if test -z "$LlcCmd"; then
|
|
| 90 | + LlcCmd="llc"
|
|
| 91 | + fi
|
|
| 92 | + |
|
| 93 | + if test -z "$OptCmd"; then
|
|
| 94 | + OptCmd="opt"
|
|
| 95 | + fi
|
|
| 96 | + |
|
| 97 | + if test -z "$LlvmAsCmd"; then
|
|
| 98 | + LlvmAsCmd="clang"
|
|
| 99 | + fi
|
|
| 100 | + |
|
| 88 | 101 | # LLVM backend tools
|
| 89 | 102 | SettingsLlcCommand="$LlcCmd"
|
| 90 | 103 | SettingsOptCommand="$OptCmd"
|
| ... | ... | @@ -460,7 +460,12 @@ static int compare_path(StgWord key1, StgWord key2) |
| 460 | 460 | |
| 461 | 461 | static void addLoadedDll(LoadedDllCache *cache, const pathchar *dll_name, HINSTANCE instance)
|
| 462 | 462 | {
|
| 463 | - insertHashTable_(cache->hash, (StgWord) dll_name, instance, hash_path);
|
|
| 463 | + // dll_name might be deallocated, we need to copy it to have a stable reference to the contents
|
|
| 464 | + // See #26613
|
|
| 465 | + size_t size = wcslen(dll_name) + 1;
|
|
| 466 | + pathchar* dll_name_copy = stgMallocBytes(size * sizeof(pathchar), "addLoadedDll");
|
|
| 467 | + wcsncpy(dll_name_copy, dll_name, size);
|
|
| 468 | + insertHashTable_(cache->hash, (StgWord) dll_name_copy, instance, hash_path);
|
|
| 464 | 469 | }
|
| 465 | 470 | |
| 466 | 471 | static HINSTANCE isDllLoaded(const LoadedDllCache *cache, const pathchar *dll_name)
|
| 1 | 1 | cabal-version: 3.0
|
| 2 | 2 | name: haddock-api
|
| 3 | -version: 2.30.0
|
|
| 3 | +version: 2.32.0
|
|
| 4 | 4 | synopsis: A documentation-generation tool for Haskell libraries
|
| 5 | 5 | description: Haddock is a documentation-generation tool for Haskell
|
| 6 | 6 | libraries
|
| 1 | 1 | cabal-version: 3.0
|
| 2 | 2 | name: haddock
|
| 3 | -version: 2.30.0
|
|
| 3 | +version: 2.32.0
|
|
| 4 | 4 | synopsis: A documentation-generation tool for Haskell libraries
|
| 5 | 5 | description:
|
| 6 | 6 | This is Haddock, a tool for automatically generating documentation
|
| ... | ... | @@ -94,7 +94,7 @@ executable haddock |
| 94 | 94 | base >= 4.13.0.0 && <4.22,
|
| 95 | 95 | -- in order for haddock's advertised version number to have proper meaning,
|
| 96 | 96 | -- we pin down to a single haddock-api version.
|
| 97 | - haddock-api == 2.30.0
|
|
| 97 | + haddock-api == 2.32.0
|
|
| 98 | 98 | |
| 99 | 99 | test-suite html-test
|
| 100 | 100 | import: extensions
|