diff --git a/src/V3Ast.h b/src/V3Ast.h index 0f1a8556d..c7267d280 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -1287,7 +1287,7 @@ public: static AstNode* addNextNull(AstNode* nodep, AstNode* newp); // Returns nodep, adds newp (maybe NULL) to end of nodep's list inline AstNode* addNext(AstNode* newp) { return addNext(this, newp); } inline AstNode* addNextNull(AstNode* newp) { return addNextNull(this, newp); } - void addNextHere(AstNode* newp); // Adds after speced node + void addNextHere(AstNode* newp); // Insert newp at this->nextp void addPrev(AstNode* newp) { replaceWith(newp); newp->addNext(this); } void addHereThisAsNext(AstNode* newp); // Adds at old place of this, this becomes next void replaceWith(AstNode* newp); // Replace current node in tree with new node diff --git a/src/V3Options.cpp b/src/V3Options.cpp index cc1f3aae9..ef3b7d41a 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -1284,7 +1284,7 @@ V3Options::V3Options() { VName::maxLength(128); // Linux filename limits 256; leave half for prefix - optimize(true); + optimize(1); // Default +libext+ addLibExtV(""); // So include "filename.v" will find the same file addLibExtV(".v");