Fixes to via-C prototype generation (FIX BUILD on Windows)    Previously we declared all external labels with type StgWord[], because the same label might be used at different types in the same file, e.g. if there are multiple foreign import declarations for the same function.  However, we have to declare called functions with the right type on Windows, because this is the only way to make the compiler add the appropriate '@n' suffix for stdcall functions.
Fixes to via-C prototype generation (FIX BUILD on Windows)
  
Previously we declared all external labels with type StgWord[],
because the same label might be used at different types in the same
file, e.g. if there are multiple foreign import declarations for the
same function.  However, we have to declare called functions with the
right type on Windows, because this is the only way to make the
compiler add the appropriate '@n' suffix for stdcall functions.

Related to this is the reason we were getting mangler complaints
(epilogue mangling) when compiling the RTS with -fvia-C.  The function
barf() doesn't return, but we had lost that information by declaring
our own prototypes, and so gcc was generating extra code after the
call to barf().

For more details see
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/PprC

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