summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2007-07-13 21:08:45 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2007-07-13 21:08:45 +0000
commitd55027c917a101692ded11b6b1421052866df2d4 (patch)
tree8edd936df3fe0ccc5fc90784e65f9178dfbebc43 /compiler/codeGen
parent1e15be89f436ae0a8ad0c2ca4fbf949c8f2c6cfc (diff)
downloadhaskell-d55027c917a101692ded11b6b1421052866df2d4.tar.gz
Add import facility to cmm parser
The cmm parser classified all unknown variables as imported. This behaviour is not changed with this patch. Explicitly imported variables get a different internal label type, namely ForeignLabel instead of RtsLabel. In PIC compilation, the NCG creates dynamic access for ForeignLabel, while RtsLabel are not treated as PIC when -package rts. Hence, putting explicit imports into cmm files enables the NCG to distinguish between RTS-external and RTS-internal symbols, and create the appropriate code.
Diffstat (limited to 'compiler/codeGen')
0 files changed, 0 insertions, 0 deletions