[project @ 2005-03-17 13:14:59 by simonmar]
authorsimonmar <unknown>
Thu, 17 Mar 2005 13:14:59 +0000 (13:14 +0000)
committersimonmar <unknown>
Thu, 17 Mar 2005 13:14:59 +0000 (13:14 +0000)
Fix +RTS -xc, which is broken in 6.4.

ghc/rts/Exception.cmm

index 0348d30..edabf54 100644 (file)
@@ -285,7 +285,7 @@ catchzh_fast
   
     /* Set up the catch frame */
     Sp = Sp - SIZEOF_StgCatchFrame;
-    SET_HDR(Sp,stg_catch_frame_info,CCCS);
+    SET_HDR(Sp,stg_catch_frame_info,W_[CCCS]);
     
     StgCatchFrame_handler(Sp) = R2;
     StgCatchFrame_exceptions_blocked(Sp) = 
@@ -330,7 +330,7 @@ raisezh_fast
      * the info was only displayed for an *uncaught* exception.
      */
     if (RtsFlags_ProfFlags_showCCSOnException(RtsFlags)) {
-      foreign "C" fprintCCS(stderr,CCCS);
+      foreign "C" fprintCCS(stderr,W_[CCCS]);
     }
 #endif