[GHC] #8996: mark more things as const in C codegen
GHC
ghc-devs at haskell.org
Wed Apr 16 10:38:00 UTC 2014
#8996: mark more things as const in C codegen
---------------------------------------+-----------------------------------
Reporter: slyfox | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler (CodeGen) | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Test Case: | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
---------------------------------------+-----------------------------------
Comment (by ezyang):
The comment dates back to GHC 4.01, so it might be wrong; I can't think of
any reason for the GC to be doing any scribbling here (Chars and Ints are
NOCAF, so we don't need to link them together on the static_objects list;
ditto for all of the other similar miscellaneous closures.). Maybe Simon
knows better.
In any case, it will be a moot point when is #8199 fixed, after which
"static closures" absolutely must be writable since we need to update them
to indirect onto blocks we've allocated.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8996#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list