Add import facility to cmm parser
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.

snoyberg/ghc,nushio3/ghc,sgillespie/ghc,nathyong/microghc-ghc,mfine/ghc,tibbe/ghc,forked-upstream-packages-for-ghcjs/ghc,ml9951/ghc,AlexanderPankiv/ghc,nathyong/microghc-ghc,elieux/ghc,gridaphobe/ghc,frantisekfarka/ghc-dsi,urbanslug/ghc,mettekou/ghc,bitemyapp/ghc,sdiehl/ghc,vTurbine/ghc,christiaanb/ghc,sdiehl/ghc,siddhanathan/ghc,anton-dessiatov/ghc,olsner/ghc,nathyong/microghc-ghc,shlevy/ghc,elieux/ghc,sgillespie/ghc,ryantm/ghc,ezyang/ghc,tjakway/ghcjvm,snoyberg/ghc,mcschroeder/ghc,anton-dessiatov/ghc,nomeata/ghc,gridaphobe/ghc,urbanslug/ghc,gridaphobe/ghc,olsner/ghc,siddhanathan/ghc,nkaretnikov/ghc,TomMD/ghc,tjakway/ghcjvm,snoyberg/ghc,tibbe/ghc,ml9951/ghc,mfine/ghc,tibbe/ghc,hferreiro/replay,shlevy/ghc,vTurbine/ghc,urbanslug/ghc,AlexanderPankiv/ghc,mcmaniac/ghc,GaloisInc/halvm-ghc,AlexanderPankiv/ghc,forked-upstream-packages-for-ghcjs/ghc,ghc-android/ghc,lukexi/ghc-7.8-arm64,GaloisInc/halvm-ghc,bitemyapp/ghc,vikraman/ghc,da-x/ghc,fmthoma/ghc,green-haskell/ghc,siddhanathan/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,wxwxwwxxx/ghc,nushio3/ghc,acowley/ghc,acowley/ghc,urbanslug/ghc,mettekou/ghc,snoyberg/ghc,nushio3/ghc,oldmanmike/ghc,nathyong/microghc-ghc,ezyang/ghc,gcampax/ghc,nushio3/ghc,hferreiro/replay,oldmanmike/ghc,TomMD/ghc,hferreiro/replay,TomMD/ghc,ilyasergey/GHC-XAppFix,sgillespie/ghc,snoyberg/ghc,nkaretnikov/ghc,acowley/ghc,GaloisInc/halvm-ghc,spacekitteh/smcghc,GaloisInc/halvm-ghc,vTurbine/ghc,ghc-android/ghc,lukexi/ghc,nomeata/ghc,hferreiro/replay,mettekou/ghc,sgillespie/ghc,shlevy/ghc,spacekitteh/smcghc,shlevy/ghc,nathyong/microghc-ghc,mcschroeder/ghc,sdiehl/ghc,holzensp/ghc,ryantm/ghc,elieux/ghc,vTurbine/ghc,vTurbine/ghc,nathyong/microghc-ghc,anton-dessiatov/ghc,TomMD/ghc,green-haskell/ghc,oldmanmike/ghc,ghc-android/ghc,frantisekfarka/ghc-dsi,GaloisInc/halvm-ghc,jstolarek/ghc,ekmett/ghc,mfine/ghc,AlexanderPankiv/ghc,christiaanb/ghc,vikraman/ghc,wxwxwwxxx/ghc,bitemyapp/ghc,fmthoma/ghc,mfine/ghc,nushio3/ghc,ghc-android/ghc,sgillespie/ghc,spacekitteh/smcghc,ezyang/ghc,nkaretnikov/ghc,ekmett/ghc,ezyang/ghc,sdiehl/ghc,da-x/ghc,acowley/ghc,jstolarek/ghc,fmthoma/ghc,acowley/ghc,forked-upstream-packages-for-ghcjs/ghc,lukexi/ghc,acowley/ghc,jstolarek/ghc,green-haskell/ghc,anton-dessiatov/ghc,mettekou/ghc,mcmaniac/ghc,gcampax/ghc,forked-upstream-packages-for-ghcjs/ghc,siddhanathan/ghc,GaloisInc/halvm-ghc,ml9951/ghc,ezyang/ghc,vTurbine/ghc,jstolarek/ghc,spacekitteh/smcghc,frantisekfarka/ghc-dsi,frantisekfarka/ghc-dsi,ekmett/ghc,spacekitteh/smcghc,nkaretnikov/ghc,ml9951/ghc,ilyasergey/GHC-XAppFix,mettekou/ghc,mcschroeder/ghc,urbanslug/ghc,jstolarek/ghc,lukexi/ghc,nomeata/ghc,vikraman/ghc,ryantm/ghc,ilyasergey/GHC-XAppFix,fmthoma/ghc,hferreiro/replay,acowley/ghc,da-x/ghc,mcmaniac/ghc,tjakway/ghcjvm,gcampax/ghc,ghc-android/ghc,green-haskell/ghc,holzensp/ghc,nkaretnikov/ghc,vikraman/ghc,ezyang/ghc,snoyberg/ghc,sgillespie/ghc,ml9951/ghc,christiaanb/ghc,elieux/ghc,oldmanmike/ghc,ryantm/ghc,tibbe/ghc,gcampax/ghc,snoyberg/ghc,tjakway/ghcjvm,christiaanb/ghc,christiaanb/ghc,elieux/ghc,oldmanmike/ghc,mettekou/ghc,tjakway/ghcjvm,wxwxwwxxx/ghc,bitemyapp/ghc,holzensp/ghc,olsner/ghc,nomeata/ghc,lukexi/ghc-7.8-arm64,fmthoma/ghc,da-x/ghc,vTurbine/ghc,tjakway/ghcjvm,TomMD/ghc,nomeata/ghc,bitemyapp/ghc,mfine/ghc,christiaanb/ghc,gridaphobe/ghc,mcschroeder/ghc,ml9951/ghc,lukexi/ghc-7.8-arm64,sdiehl/ghc,TomMD/ghc,tibbe/ghc,vikraman/ghc,christiaanb/ghc,gcampax/ghc,olsner/ghc,mcmaniac/ghc,nkaretnikov/ghc,da-x/ghc,ilyasergey/GHC-XAppFix,tjakway/ghcjvm,vikraman/ghc,vikraman/ghc,mfine/ghc,anton-dessiatov/ghc,hferreiro/replay,lukexi/ghc-7.8-arm64,wxwxwwxxx/ghc,olsner/ghc,mcschroeder/ghc,nathyong/microghc-ghc,shlevy/ghc,forked-upstream-packages-for-ghcjs/ghc,da-x/ghc,gridaphobe/ghc,mcschroeder/ghc,nushio3/ghc,lukexi/ghc-7.8-arm64,forked-upstream-packages-for-ghcjs/ghc,AlexanderPankiv/ghc,ghc-android/ghc,fmthoma/ghc,fmthoma/ghc,elieux/ghc,urbanslug/ghc,olsner/ghc,AlexanderPankiv/ghc,AlexanderPankiv/ghc,lukexi/ghc,ekmett/ghc,anton-dessiatov/ghc,sdiehl/ghc,ryantm/ghc,sdiehl/ghc,gcampax/ghc,gcampax/ghc,TomMD/ghc,lukexi/ghc,da-x/ghc,siddhanathan/ghc,ezyang/ghc,oldmanmike/ghc,hferreiro/replay,ml9951/ghc,wxwxwwxxx/ghc,siddhanathan/ghc,elieux/ghc,mcmaniac/ghc,gridaphobe/ghc,mettekou/ghc,shlevy/ghc,holzensp/ghc,forked-upstream-packages-for-ghcjs/ghc,olsner/ghc,shlevy/ghc,siddhanathan/ghc,wxwxwwxxx/ghc,green-haskell/ghc,nushio3/ghc,mfine/ghc,urbanslug/ghc,holzensp/ghc,gridaphobe/ghc,ekmett/ghc,mcschroeder/ghc,frantisekfarka/ghc-dsi,oldmanmike/ghc,anton-dessiatov/ghc,sgillespie/ghc,ghc-android/ghc,wxwxwwxxx/ghc,ml9951/ghc