From 6b48a2e6aee9b9ec36e758ee6184fc908fad0963 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 5 Aug 1998 15:43:38 -0700
Subject: [PATCH] now das DWARF debug again

Rev: NT/tools/rntcc:1.16
---
 NT/tools/rntcc | 31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)

diff --git a/NT/tools/rntcc b/NT/tools/rntcc
index f98242fe8b..3e55f63e6c 100755
--- a/NT/tools/rntcc
+++ b/NT/tools/rntcc
@@ -96,7 +96,7 @@ int main(int argc, string *argv)
       switch(option[0])
       {
 	case "verbose":
-	  verbose=1;
+	  verbose++;
 	  break;
 
 	case "export":
@@ -108,23 +108,34 @@ int main(int argc, string *argv)
 	  ldopts=({"SYSTEM","nt_dll","initinstance","terminstance"})+ldopts;
 	  cflags+=({"-bd"});
 	  break;
-
+	  
 	case "oper_pre": operation="preprocess"; break;
 	case "oper_comp": operation="compile"; break;
 	case "debug":
-	cflags+=({"-d2"});
-//	ldopts+=({"DEBUG","CODEVIEW","ALL"});
-	ldopts+=({"DEBUG","CODEVIEW","OPTION","CVPACK"});
-	debug=1;
-	break;
-	
+//	  cflags+=({"-d2"});
+//	  ldopts+=({"DEBUG","WATCOM","ALL"});
+
+	  cflags+=({"-d2","-hd"});
+	  ldopts+=({"DEBUG","DWARF"});
+
+//	  cflags+=({"-d2","-hc"});
+//	  ldopts+=({"DEBUG","CODEVIEW","OPTION","CVPACK"});
+	  debug=1;
+	  break;
+	  
 	case "optimize":
 	  if(!option[1]) option[1]=1;
 	  switch(optimize=(int)option[1])
 	  {
 	    case 0: optimize=0; break;
 	    case 1: cflags+=({"-ox"}); break;
-	    case 2..: cflags+=({"-otexan"}); break;
+	    case 2: cflags+=({"-otexan"}); break;
+	    case 3..:
+	      cflags+=({"-s",
+			  "-oe="+(optimize*30),
+			  "-ol+",
+			  "-oabhikmnrt"});
+	      break;
 	  }
 	  break;
 	  
@@ -215,7 +226,7 @@ int main(int argc, string *argv)
   rm(errorfile);
 
   // Flags required to make the compiler behave well
-  cflags+=({"-bm","-zq","-hc","-sg"});
+  cflags+=({"-bm","-zq","-sg","-5","-fpi87","-fp3"});
 
   switch(operation)
   {
-- 
GitLab