[Git][ghc/ghc][master] [fixup 3433] move debugBelch into IF_DEBUG(linker)
Marge Bot
gitlab at gitlab.haskell.org
Tue Sep 1 03:02:56 UTC 2020
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
6189cc04 by Moritz Angermann at 2020-08-31T23:02:50-04:00
[fixup 3433] move debugBelch into IF_DEBUG(linker)
The commit in dff1cb3d9c111808fec60190747272b973547c52 incorrectly left
the `debugBelch` function without a comment or IF_DEBUG(linker,)
decoration. This rectifies it.
Needs at least a 8.10 backport, as it was backported in 6471cc6aff80d5deebbdb1bf7b677b31ed2af3d5
- - - - -
1 changed file:
- rts/linker/Elf.c
Changes:
=====================================
rts/linker/Elf.c
=====================================
@@ -903,8 +903,9 @@ ocGetNames_ELF ( ObjectCode* oc )
common_used += symbol->elf_sym->st_size;
ASSERT(common_used <= common_size);
- debugBelch("COMMON symbol, size %ld name %s allocated at %p\n",
- symbol->elf_sym->st_size, nm, symbol->addr);
+ IF_DEBUG(linker,
+ debugBelch("COMMON symbol, size %ld name %s allocated at %p\n",
+ symbol->elf_sym->st_size, nm, symbol->addr));
/* Pointless to do addProddableBlock() for this area,
since the linker should never poke around in it. */
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6189cc04ca6c3d79126744e988b487f75ccef9e2
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6189cc04ca6c3d79126744e988b487f75ccef9e2
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/20200831/13329dfe/attachment.html>
More information about the ghc-commits
mailing list