Re: [GHC] #1282: stg_uncheckedShift* not found: regression from ghc-6.6 to ghc-6.6.1 RC 6.6.20070415 (?)

2007-04-20 Thread GHC
#1282: stg_uncheckedShift* not found: regression from ghc-6.6 to ghc-6.6.1 RC
6.6.20070415 (?)
--+-
 Reporter:  Isaac Dupree  |  Owner: 
 Type:  bug   | Status:  new
 Priority:  normal|  Milestone: 
Component:  Compiler  |Version:  6.6
 Severity:  normal| Resolution: 
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  powerpc
   Os:  Linux |  
--+-
Comment (by Isaac Dupree):

 Okay, looking at different versions of the GHC source-code, it looks like
 the problem is that the stg_* functions have been renamed hs_* (e.g. see
 foreign imports in libraries/base/GHC/Word.hs, or
 libraries/base/include/HsBase.h and libraries/base/cbits/longlong.c), and
 so the "binary" library is trying to import uncheckedShiftL64 and
 uncheckedShiftRL64 using the C-names that are used in any so-far-released
 version of GHC, that start with stg_.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #1282: stg_uncheckedShift* not found: regression from ghc-6.6 to ghc-6.6.1 RC 6.6.20070415 (?)

2007-04-20 Thread GHC
#1282: stg_uncheckedShift* not found: regression from ghc-6.6 to ghc-6.6.1 RC
6.6.20070415 (?)
--+-
 Reporter:  Isaac Dupree  |  Owner: 
 Type:  bug   | Status:  new
 Priority:  normal|  Milestone: 
Component:  Compiler  |Version:  6.6
 Severity:  normal| Resolution: 
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  powerpc
   Os:  Linux |  
--+-
Comment (by Isaac Dupree):

 Problem also reproducible with 6.7.20070418 for me.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #1287: SPECIALIZE causes panic

2007-04-20 Thread GHC
#1287: SPECIALIZE causes panic
-+--
Reporter:  [EMAIL PROTECTED]  |   Owner:   
Type:  bug   |  Status:  new  
Priority:  normal|   Milestone:   
   Component:  Compiler  | Version:  6.6  
Severity:  normal|Keywords:  panic, SPECIALIZE
  Difficulty:  Unknown   |Testcase:   
Architecture:  Unknown   |  Os:  Unknown  
-+--
the following code snippet makes GHC (6.6) panic:

 {{{
 delta' :: Eq a => a -> a -> b -> b -> b
 delta' x y e f = if (x==y) then f else e
 {-# SPECIALIZE delta' :: Num b => Int -> Int -> b -> b -> b #-}

 delta :: (Eq a, Num b) => a -> a -> b
 delta x y = delta' x y 0 1
 {-# SPECIALIZE delta :: Num b => Int -> Int -> b #-}
 }}}

 the reply from GHC:

 {{{
 ghc-6.6: panic! (the 'impossible' happened)
   (GHC version 6.6 for i386-apple-darwin):
 Template variable unbound in rewrite rule $dNum{v a1bL} [lid]
 }}}

 it does not panic without the SPECIALIZE pragmas.

 the version used is GHC 6.6, i386-apple-darwin.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs