--no-peep and --peep-file <file> are used don't use default rules but
do use the <file>
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4079
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
+
+ * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
+ --no-peep and --peep-file <file> are used don't use default rules but
+ do use the <file>
+
2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
* src/mcs51/gen.c (genCall): fixed bug 1457608
2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
* src/mcs51/gen.c (genCall): fixed bug 1457608
char *s;
/* read in the default rules */
char *s;
/* read in the default rules */
- readRules (port->peep.default_rules);
+ if (!options.nopeep)
+ {
+ readRules (port->peep.default_rules);
+ }
/* if we have any additional file read it too */
if (options.peep_file)
{
readRules (s = readFileIntoBuffer (options.peep_file));
setToNull ((void *) &s);
/* if we have any additional file read it too */
if (options.peep_file)
{
readRules (s = readFileIntoBuffer (options.peep_file));
setToNull ((void *) &s);
+ /* override nopeep setting, default rules have not been read */
+ options.nopeep = 0;