From d423af2b5204fe3ef95fbb369e38664b70167584 Mon Sep 17 00:00:00 2001 From: frief Date: Wed, 28 Feb 2007 08:59:04 +0000 Subject: [PATCH] * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4659 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/hc08/gen.c | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0f77876d..f1aa2db4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-02-28 Frieder Ferlemann + + * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08 + 2007-02-27 Frieder Ferlemann * src/SDCCglobl.h, diff --git a/src/hc08/gen.c b/src/hc08/gen.c index f7f9be18..e00a0b26 100644 --- a/src/hc08/gen.c +++ b/src/hc08/gen.c @@ -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 */ -- 2.30.2