[GHC] #12388: Don't barf on failures in the RTS linker
GHC
ghc-devs at haskell.org
Mon Jul 18 08:01:51 UTC 2016
#12388: Don't barf on failures in the RTS linker
-------------------------------------+-------------------------------------
Reporter: dobenour | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Runtime System | Version: 8.0.1
(Linker) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonmar):
Something that might help here is gcc's cleanup attribute:
https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html which
gives you some of the benefits of RAII in plain C.
Going to C++ even for a small bit of the codebase would be a big step
because we would have to use g++ as the linker and we get dependencies on
C++ standard libs etc.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12388#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list