Add unreg/tables-next-code output to +RTS --info
authorIan Lynagh <igloo@earth.li>
Mon, 23 Jul 2007 10:01:35 +0000 (10:01 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 23 Jul 2007 10:01:35 +0000 (10:01 +0000)
rts/Makefile
rts/RtsFlags.c

index 9ab9652..7b17ce3 100644 (file)
@@ -132,6 +132,8 @@ RtsFlags_CC_OPTS += -DRtsWay=\"rts$(_way)\"
 RtsFlags_CC_OPTS += -DHostPlatform=\"$(HOSTPLATFORM)\"
 RtsFlags_CC_OPTS += -DBuildPlatform=\"$(BUILDPLATFORM)\"
 RtsFlags_CC_OPTS += -DTargetPlatform=\"$(TARGETPLATFORM)\"
 RtsFlags_CC_OPTS += -DHostPlatform=\"$(HOSTPLATFORM)\"
 RtsFlags_CC_OPTS += -DBuildPlatform=\"$(BUILDPLATFORM)\"
 RtsFlags_CC_OPTS += -DTargetPlatform=\"$(TARGETPLATFORM)\"
+RtsFlags_CC_OPTS += -DGhcUnregisterised=\"$(GhcUnregisterised)\"
+RtsFlags_CC_OPTS += -DGhcEnableTablesNextToCode=\"$(GhcEnableTablesNextToCode)\"
 
 ifeq "$(way)" "mp"
 SRC_HC_OPTS += -I$$PVM_ROOT/include
 
 ifeq "$(way)" "mp"
 SRC_HC_OPTS += -I$$PVM_ROOT/include
index 1e8654d..4c1f739 100644 (file)
@@ -684,12 +684,18 @@ error = rtsTrue;
                   }
                   else if (strequal("info",
                                &rts_argv[arg][2])) {
                   }
                   else if (strequal("info",
                                &rts_argv[arg][2])) {
+                      char *s;
                       printf("RTS info:\n");
                       printf("RTS from GHC " ProjectVersion "\n");
                       printf("RTS way " RtsWay "\n");
                       printf("Host platform " HostPlatform "\n");
                       printf("Build platform " BuildPlatform "\n");
                       printf("Target platform " TargetPlatform "\n");
                       printf("RTS info:\n");
                       printf("RTS from GHC " ProjectVersion "\n");
                       printf("RTS way " RtsWay "\n");
                       printf("Host platform " HostPlatform "\n");
                       printf("Build platform " BuildPlatform "\n");
                       printf("Target platform " TargetPlatform "\n");
+                      s = strcmp(GhcUnregisterised, "YES") == 0 ? "un" : "";
+                      printf("Compiler is %sregisterised\n", s);
+                      s = strcmp(GhcEnableTablesNextToCode, "YES") == 0
+                        ? "" : "not ";
+                      printf("Tables are %snext to code\n", s);
                       exit(0);
                   }
                   else {
                       exit(0);
                   }
                   else {