* src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
authorfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Feb 2007 08:59:04 +0000 (08:59 +0000)
committerfrief <frief@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Feb 2007 08:59:04 +0000 (08:59 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4659 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
src/hc08/gen.c

index 0f77876dd623cb5b9870a09c85748a22941a3e17..f1aa2db48969d1e1376cd82dc09c4b20cb20e7db 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
+
+       * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
+
 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
 
        * src/SDCCglobl.h,
index f7f9be1801bd273dca82497fe6723405bf3a37ed..e00a0b263f1b29fe92b706904c842a1ee341da42 100644 (file)
@@ -28,8 +28,7 @@
 -------------------------------------------------------------------------*/
 
 /* Use the D macro for basic (unobtrusive) debugging messages */
-//#define D(x)
-#define D(x) x
+#define D(x) do if (!options.noGenComments) {x;} while(0)
 /* Use the DD macro for detailed debugging messages */
 #define DD(x)
 //#define DD(x) x
@@ -4230,8 +4229,9 @@ negatedCmp (int opcode)
   return EQ_OP; /* shouldn't happen, but need to return something */
 }
 
-/* compile only if the debugging macro D is enabled */
-#if (D(1) -0)
+/*------------------------------------------------------------------*/
+/* nameCmp : helper function for human readable debug output        */
+/*------------------------------------------------------------------*/
 static char *
 nameCmp (int opcode)
 {
@@ -4253,7 +4253,6 @@ nameCmp (int opcode)
       return "invalid";
     }
 }
-#endif
 
 /*------------------------------------------------------------------*/
 /* branchInstCmp : returns the conditional branch instruction that  */