From 45f3be401cb70e312b1185e96b9fc6279f930981 Mon Sep 17 00:00:00 2001 From: borutr Date: Tue, 17 Apr 2007 19:59:45 +0000 Subject: [PATCH 1/1] * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c: fixed #1493816: option --no-gen-comments: --no-gen-comments renamed to --fno-verbose-asm, to be gcc'ish git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4753 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 7 +++++++ doc/sdccman.lyx | 4 ++-- src/SDCCglobl.h | 2 +- src/SDCCmain.c | 4 ++-- src/ds390/gen.c | 2 +- src/hc08/gen.c | 2 +- src/mcs51/gen.c | 2 +- src/mcs51/rtrack.c | 2 +- 8 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9995d465..93ba830c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-04-17 Borut Razem + + * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c, + src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c: + fixed #1493816: option --no-gen-comments: --no-gen-comments renamed + to --fno-verbose-asm, to be gcc'ish + 2007-04-17 Maarten Brock * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455 diff --git a/doc/sdccman.lyx b/doc/sdccman.lyx index c5068878..616b26d3 100644 --- a/doc/sdccman.lyx +++ b/doc/sdccman.lyx @@ -9657,7 +9657,7 @@ status collapsed \end_inset --no-gen-comments +-no-verbose-asm \begin_inset LatexCommand \index{-\/-no-gen-comments} \end_inset @@ -22757,7 +22757,7 @@ status collapsed \end_inset --debug-extra +-debug-xtra \begin_inset LatexCommand \index{PIC14!Options!-\/-debug-extra} \end_inset diff --git a/src/SDCCglobl.h b/src/SDCCglobl.h index e4c64ca4..53146665 100644 --- a/src/SDCCglobl.h +++ b/src/SDCCglobl.h @@ -279,7 +279,7 @@ struct options int noCcodeInAsm; /* hide c-code from asm */ int iCodeInAsm; /* show i-code in asm */ int noPeepComments; /* hide peephole optimizer comments */ - int noGenComments; /* hide comments generated with gen.c */ + int noVerboseAsm; /* hide comments generated with gen.c */ int printSearchDirs; /* display the directories in the compiler's search path */ int vc_err_style; /* errors and warnings are compatible with Micro$oft visual studio */ int use_stdout; /* send errors to stdout instead of stderr */ diff --git a/src/SDCCmain.c b/src/SDCCmain.c index ed2fa961..a418d6fb 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -135,7 +135,7 @@ char buffer[PATH_MAX * 2]; #define OPTION_PACK_IRAM "--pack-iram" #define OPTION_NO_PACK_IRAM "--no-pack-iram" #define OPTION_NO_PEEP_COMMENTS "--no-peep-comments" -#define OPTION_NO_GEN_COMMENTS "--no-gen-comments" +#define OPTION_NO_VERBOSE_ASM "--fno-verbose-asm" #define OPTION_OPT_CODE_SPEED "--opt-code-speed" #define OPTION_OPT_CODE_SIZE "--opt-code-size" #define OPTION_STD_C89 "--std-c89" @@ -220,7 +220,7 @@ optionsTable[] = { { 0, OPTION_NO_XINIT_OPT, &options.noXinitOpt, "don't memcpy initialized xram from code"}, { 0, OPTION_NO_CCODE_IN_ASM, &options.noCcodeInAsm, "don't include c-code as comments in the asm file"}, { 0, OPTION_NO_PEEP_COMMENTS, &options.noPeepComments, "don't include peephole optimizer comments"}, - { 0, OPTION_NO_GEN_COMMENTS, &options.noGenComments, "don't include code generator comments"}, + { 0, OPTION_NO_VERBOSE_ASM, &options.noVerboseAsm, "don't include code generator comments"}, #if !OPT_DISABLE_Z80 || !OPT_DISABLE_GBZ80 { 0, "--no-std-crt0", &options.no_std_crt0, "For the z80/gbz80 do not link default crt0.o"}, #endif diff --git a/src/ds390/gen.c b/src/ds390/gen.c index 870652ec..98b513ff 100644 --- a/src/ds390/gen.c +++ b/src/ds390/gen.c @@ -26,7 +26,7 @@ -------------------------------------------------------------------------*/ //#define D(x) -#define D(x) do if (!options.noGenComments) {x;} while(0) +#define D(x) do if (!options.noVerboseAsm) {x;} while(0) #include #include diff --git a/src/hc08/gen.c b/src/hc08/gen.c index e00a0b26..23084dfe 100644 --- a/src/hc08/gen.c +++ b/src/hc08/gen.c @@ -28,7 +28,7 @@ -------------------------------------------------------------------------*/ /* Use the D macro for basic (unobtrusive) debugging messages */ -#define D(x) do if (!options.noGenComments) {x;} while(0) +#define D(x) do if (!options.noVerboseAsm) {x;} while(0) /* Use the DD macro for detailed debugging messages */ #define DD(x) //#define DD(x) x diff --git a/src/mcs51/gen.c b/src/mcs51/gen.c index a36937f2..a84e2966 100644 --- a/src/mcs51/gen.c +++ b/src/mcs51/gen.c @@ -28,7 +28,7 @@ Made everything static -------------------------------------------------------------------------*/ -#define D(x) do if (!options.noGenComments) {x;} while(0) +#define D(x) do if (!options.noVerboseAsm) {x;} while(0) #include #include diff --git a/src/mcs51/rtrack.c b/src/mcs51/rtrack.c index 45abfbab..66ea17e4 100644 --- a/src/mcs51/rtrack.c +++ b/src/mcs51/rtrack.c @@ -46,7 +46,7 @@ #define DEBUG(x) //#define DEBUG(x) x -#define D(x) do if (!options.noGenComments) {x;} while(0) +#define D(x) do if (!options.noVerboseAsm) {x;} while(0) #define REGS8051_SET(idx,val) do{ \ regs8051[idx].value = (val) & 0xff; \ -- 2.30.2