[GHC] #12891: Automate symbols inclusion in RtsSymbols.c from Rts.h

GHC ghc-devs at haskell.org
Wed Apr 4 19:59:14 UTC 2018


#12891: Automate symbols inclusion in RtsSymbols.c from Rts.h
-------------------------------------+-------------------------------------
        Reporter:  Phyx-             |                Owner:  bgamari
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Build System      |              Version:  8.0.1
      Resolution:                    |             Keywords:  newcomer
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #12846            |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by chris_r_timmons):

 Set `C` is just `A - B`.  Referencing the attached `T12891.py` file, set
 `A` is generated with the `get_symbol_names` function.  Set `B` is created
 by the `get_symbol_names_from_rts_symbols_c` function.

 (In the Python script I hard coded set `C`.  I anticipated a developer
 would adjust its contents for correctness, at least until I could figure
 out a way to remove that requirement.)

 Regarding `barf` and `debugBelch` - they're declared in
 `includes/rts/Messages.h`, which is included by `includes/Rts.h`.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12891#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list