Show included-from filenames in warnings, bug1439.

This commit is contained in:
Wilson Snyder
2019-06-22 17:01:39 -04:00
parent 951521320a
commit 8e7559c6c9
20 changed files with 147 additions and 23 deletions
+6 -2
View File
@@ -145,8 +145,10 @@ public:
if (!vxp->pure()) {
nodep->v3warn(IMPURE, "Unsupported: External variable referenced by non-inlined function/task: "
<<nodep->prettyName()<<endl
<<nodep->warnContextPrimary()<<endl
<<vxp->impureNode()->warnMore()<<"... Location of the external reference: "
<<vxp->impureNode()->prettyName());
<<vxp->impureNode()->prettyName()<<endl
<<vxp->impureNode()->warnContextSecondary());
}
// And, we need to check all tasks this task calls
for (V3GraphEdge* edgep = vxp->outBeginp(); edgep; edgep=edgep->outNextp()) {
@@ -840,9 +842,11 @@ private:
else if (iter->second.second != dpiproto) {
nodep->v3error("Duplicate declaration of DPI function with different formal arguments: "
<<nodep->prettyName()<<endl
<<nodep->warnContextPrimary()<<endl
<<nodep->warnMore()<<"... New prototype: "<<dpiproto<<endl
<<iter->second.first->warnMore()<<"... Original prototype: "
<<iter->second.second);
<<iter->second.second<<endl
<<iter->second.first->warnContextSecondary());
return true;
}
else {