#5965: pref-llvm failed at integer-gmp-0.3.0.0: stored value and pointer type do
not match
----------------------------------+-----------------------------------------
  Reporter:  Favonia              |          Owner:                
      Type:  bug                  |         Status:  new           
  Priority:  highest              |      Milestone:  7.6.1         
 Component:  libraries (other)    |        Version:  7.5           
Resolution:                       |       Keywords:                
        Os:  Linux                |   Architecture:  x86_64 (amd64)
   Failure:  Building GHC failed  |     Difficulty:  Unknown       
  Testcase:                       |      Blockedby:                
  Blocking:                       |        Related:                
----------------------------------+-----------------------------------------

Comment(by dterei):

 OK also from GMP Docs:

 {{{
 Counts of bits of a multi-precision number are represented in the C type
 mp_bitcnt_t. Currently this is always an unsigned long, but on some
 systems it will be an unsigned long long in the future.
 }}}

 So I guess we should apply two casts. The other option is to add code to
 the LLVM backend to handle doing implicit coercions making it compatible
 with NCG as bugs of this nature come up every few months. However I'd like
 to avoid that as its only the hand written cmm code that it can occur in
 so for now dealing with these on a case by case basis seems OK.

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to