diff options
author | Tristan Gingold <tgingold@free.fr> | 2023-01-14 18:50:22 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2023-01-15 09:47:13 +0100 |
commit | 5b59dda84a7eb8a48e94a75b9b3ad008514089ce (patch) | |
tree | 7d8bcf6addec0f6ebb6bb68b50650d03607128c8 /src/errorout.ads | |
parent | 1fe5958609b57e7d134e0cc75713c530339a86dd (diff) | |
download | ghdl-5b59dda84a7eb8a48e94a75b9b3ad008514089ce.tar.gz ghdl-5b59dda84a7eb8a48e94a75b9b3ad008514089ce.tar.bz2 ghdl-5b59dda84a7eb8a48e94a75b9b3ad008514089ce.zip |
vhdl: add a warning to detect use before elaboration
Diffstat (limited to 'src/errorout.ads')
-rw-r--r-- | src/errorout.ads | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/errorout.ads b/src/errorout.ads index 3f554380e..53c926491 100644 --- a/src/errorout.ads +++ b/src/errorout.ads @@ -132,13 +132,16 @@ package Errorout is -- Lexical conformance Warnid_Conformance, - -- Attributes in the netlist is not kept during synthesis + -- Attributes in the netlist is not kept during synthesis Warnid_Unkept_Attribute, Warnid_Unhandled_Attribute, -- Violation of staticness rules Warnid_Static, + -- Use before elaboration. + Warnid_Elaboration, + -- Any warning Msgid_Warning, @@ -151,7 +154,7 @@ package Errorout is -- All specific warning messages. subtype Msgid_Warnings is Msgid_Type - range Warnid_Library .. Warnid_Static; + range Warnid_Library .. Warnid_Elaboration; subtype Msgid_All_Warnings is Msgid_Type range Msgid_Warnings'First .. Msgid_Warning; @@ -331,9 +334,8 @@ private | Warnid_Runtime_Error | Warnid_Pure | Warnid_Specs | Warnid_Hide | Warnid_Pragma | Warnid_Analyze_Assert | Warnid_Attribute | Warnid_Deprecated_Option | Warnid_Unexpected_Option - | Warnid_Nowrite - | Warnid_No_Wait | Warnid_Useless - | Warnid_Conformance + | Warnid_Nowrite | Warnid_No_Wait | Warnid_Useless + | Warnid_Elaboration | Warnid_Conformance | Warnid_Unkept_Attribute | Warnid_Unhandled_Attribute | Msgid_Warning => (Enabled => True, Error => False), Warnid_Delta_Cycle | Warnid_Body | Warnid_Static | Warnid_Nested_Comment |