git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4659
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+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,
2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
* src/SDCCglobl.h,
-------------------------------------------------------------------------*/
/* Use the D macro for basic (unobtrusive) debugging messages */
-------------------------------------------------------------------------*/
/* 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
/* Use the DD macro for detailed debugging messages */
#define DD(x)
//#define DD(x) x
return EQ_OP; /* shouldn't happen, but need to return something */
}
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)
{
static char *
nameCmp (int opcode)
{
/*------------------------------------------------------------------*/
/* branchInstCmp : returns the conditional branch instruction that */
/*------------------------------------------------------------------*/
/* branchInstCmp : returns the conditional branch instruction that */