<div dir="ltr">Hmmm,  a completely clean build seems to have resolved the issue. Indicative of a Makefile problem somewhere? <div><br></div><div>-E</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 12, 2013 at 10:36 AM, Edsko de Vries <span dir="ltr"><<a href="mailto:edskodevries@gmail.com" target="_blank">edskodevries@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
I'm trying to add a new primop; as a starting point I just copied the<br>
definition of "catch#" in primops.txt.pp and renamed "catch#" to<br>
"catchRethrow#", and added the corresponding declarations following<br>
<a href="https://ghc.haskell.org/trac/ghc/wiki/Commentary/PrimOps#AddinganewPrimOp" target="_blank">https://ghc.haskell.org/trac/ghc/wiki/Commentary/PrimOps#AddinganewPrimOp</a><br>
; however, when I do this, I get<br>
<br>
ghc-stage1: panic! (the 'impossible' happened)<br>
  (GHC version 7.7.20131108 for x86_64-apple-darwin):<br>
  compiler/codeGen/StgCmmExpr.hs:508:15-48: Irrefutable pattern failed<br>
for pattern (CoreSyn.DEFAULT, deflt)<br>
<br>
I can't quite figure out why that is happening and how I should<br>
address it. Any suggestions?<br>
<br>
Thanks!<br>
<span class="HOEnZb"><font color="#888888"><br>
-E<br>
</font></span></blockquote></div><br></div>