From 5b59dda84a7eb8a48e94a75b9b3ad008514089ce Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 14 Jan 2023 18:50:22 +0100 Subject: vhdl: add a warning to detect use before elaboration --- src/errorout.ads | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/errorout.ads') 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 -- cgit v1.2.3