Add -Wall reporting ASSIGNDLY on assignment delays.

This commit is contained in:
Wilson Snyder
2011-10-20 20:50:42 -04:00
parent 4aa7222022
commit 0aa7c3f659
7 changed files with 29 additions and 6 deletions
+4 -1
View File
@@ -55,6 +55,7 @@ public:
// Warning codes:
EC_FIRST_WARN, // Just a code so the program knows where to start warnings
//
ASSIGNDLY, // Assignment delays
BLKANDNBLK, // Blocked and non-blocking assignments to same variable
BLKSEQ, // Blocking assignments in sequential block
CASEINCOMPLETE, // Case statement has missing values
@@ -107,6 +108,7 @@ public:
"MULTITOP", "TASKNSVAR", "BLKLOOPINIT",
// Warnings
" EC_FIRST_WARN",
"ASSIGNDLY",
"BLKANDNBLK", "BLKSEQ",
"CASEINCOMPLETE", "CASEOVERLAP", "CASEWITHX", "CASEX", "CDCRSTLOGIC", "CMPCONST",
"COMBDLY", "DEFPARAM", "DECLFILENAME",
@@ -142,7 +144,8 @@ public:
|| m_e==UNSIGNED
|| m_e==WIDTH); }
// Warnings that are style only
bool styleError() const { return ( m_e==BLKSEQ
bool styleError() const { return ( m_e==ASSIGNDLY // More than style, but for backward compatibility
|| m_e==BLKSEQ
|| m_e==DEFPARAM
|| m_e==DECLFILENAME
|| m_e==INCABSPATH
+1 -1
View File
@@ -1527,7 +1527,7 @@ assignOne<nodep>:
delayE:
/* empty */ { }
| delay_control { } /* ignored */
| delay_control { $1->v3warn(ASSIGNDLY,"Ignoring delay on this assignment/primitive."); } /* ignored */
;
delay_control<fl>: //== IEEE: delay_control