peep-hole comments are generated only if --fverbose-asm option is
specified and --no-peep-comments is not, as proposed by Frieder.
* support/regression/Makefile.in: compile regression tests with
--fverbose-asm option so one can "grep" whether a new (or an old)
peephole is (still) applied; requested by Frieder.
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4769
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2007-04-23 Borut Razem <borut.razem AT siol.net>
+
+ * doc/sdccman.lyx, src/SDCCmain.c:
+ peep-hole comments are generated only if --fverbose-asm option is
+ specified and --no-peep-comments is not, as proposed by Frieder.
+ * support/regression/Makefile.in: compile regression tests with
+ --fverbose-asm option so one can "grep" whether a new (or an old)
+ peephole is (still) applied; requested by Frieder.
+
2007-04-23 Kevin Buettner <kevin AT buettner.to>
* device/include/pic/pic16f886.h,
\end_inset
--no-peep-comments
-\begin_inset LatexCommand \index{-\/-no-peep-comments}
+-fverbose-asm
+\begin_inset LatexCommand \index{-\/-no-gen-comments}
\end_inset
\series default
- Will not include peep-hole comments in the generated files.
+ Include code generator and peep-hole comments in the generated asm files.
\end_layout
\begin_layout List
\end_inset
--fverbose-asm
-\begin_inset LatexCommand \index{-\/-no-gen-comments}
+-no-peep-comments
+\begin_inset LatexCommand \index{-\/-no-peep-comments}
\end_inset
\series default
- Include code generator comments in the generated asm files.
+ Don't include peep-hole comments in the generated asm files even if --fverbose-
+asm option is specified.
\end_layout
\begin_layout List
\InsetSpace ~
<Name> The name to be used for the const
-\begin_inset LatexCommand \index{code}
+\begin_inset LatexCommand \index{const}
\end_inset
return 0;
}
+/*-----------------------------------------------------------------*/
+/* finalizeOptions - finalize (post-process( options */
+/*-----------------------------------------------------------------*/
+static void
+finalizeOptions (void)
+{
+ /* no peephole comments if not verbose asm */
+ if (!options.verboseAsm)
+ options.noPeepComments = 1;
+}
+
/*-----------------------------------------------------------------*/
/* linkEdit : - calls the linkage editor with options */
/*-----------------------------------------------------------------*/
And the z80 port needs port->finaliseOptions(),
even if we're only linking. */
initMem ();
+
+ /* finalize target specific options */
port->finaliseOptions ();
+ /* finalize common options */
+ finalizeOptions ();
+
if (fullSrcFileName || options.c1mode)
{
preProcess (envp);
# Path to SDCC
SDCC = $(top_builddir)/bin/sdcc
# Base flags.
-SDCCFLAGS += -DNO_VARARGS
+SDCCFLAGS += --fverbose-asm -DNO_VARARGS
# Extension of object intermediate files
OBJEXT = .o
# Extension of files that can be run in the emulator