
Dear GHC team, I needed to look into the C code made by ghc-7.4.1 (made from source by 7.0.1 on Debian Linux) for module TT (dropCWhile) where dropCWhile :: (Char -> Bool) -> [Char] -> [Char] dropCWhile p xs = case xs of [] -> [] x: ys -> if p x then dropCWhile p ys else xs And applied ghc -C -O TT.hs It reports ------------------------------------------- addFlag by -C on the commandline: Warning: The -fvia-C flag does nothing; it will be removed in a future GHC release ghc: panic! (the 'impossible' happened) (GHC version 7.4.1 for i386-unknown-linux): pipeLoop: at phase As but I wanted to stop at phase HCc Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug ------------------------------------------- 1. A bug report. 2. How to see this C code? What GHC version shows it? If you have such a version installed, can you, please, send me the C code? Regards, ------ Sergei mechvel@botik.ru

On Sun, Feb 5, 2012 at 12:11, Serge D. Mechveliani
I needed to look into the C code made by ghc-7.4.1
GHC doesn't write C source any more. Warning: The -fvia-C flag does nothing; it will be removed in a future
GHC release
which is what this is telling you
ghc: panic! (the 'impossible' happened) (GHC version 7.4.1 for i386-unknown-linux): pipeLoop: at phase As but I wanted to stop at phase HCc
and this appears to be a symptom of it not having been completely removed; the phase it wants to stop at no longer exists so it's getting caught after the fact. "Oops"
2. How to see this C code? What GHC version shows it?
ghc6.x supported -fvia-C, ghc7.x does not. Modern ghc uses a more efficient native code generator instead of going through C. Why is the purported C code supposed to be useful? -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms

On 05/02/2012 18:06, Brandon Allbery wrote:
On Sun, Feb 5, 2012 at 12:11, Serge D. Mechveliani
mailto:mechvel@botik.ru> wrote: I needed to look into the C code made by ghc-7.4.1
GHC doesn't write C source any more.
Warning: The -fvia-C flag does nothing; it will be removed in a future GHC release
which is what this is telling you
ghc: panic! (the 'impossible' happened) (GHC version 7.4.1 for i386-unknown-linux): pipeLoop: at phase As but I wanted to stop at phase HCc
and this appears to be a symptom of it not having been completely removed; the phase it wants to stop at no longer exists so it's getting caught after the fact. "Oops"
Thanks, I'll get this fixed. Cheers, Simon
2. How to see this C code? What GHC version shows it?
ghc6.x supported -fvia-C, ghc7.x does not. Modern ghc uses a more efficient native code generator instead of going through C.
Why is the purported C code supposed to be useful?
-- brandon s allbery allbery.b@gmail.com mailto:allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (3)
-
Brandon Allbery
-
Serge D. Mechveliani
-
Simon Marlow