diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-08-02 09:17:08 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-08-02 09:17:08 +0200 |
commit | 3c83e47c98bc9e58ca2c231a5b24c3639018c9cc (patch) | |
tree | f2c0133e26ee413d3c778465c552233905a5db56 /src/vhdl/sem.adb | |
parent | ee0e651d9b3946910d513e6a670453e25e5f014d (diff) | |
download | ghdl-3c83e47c98bc9e58ca2c231a5b24c3639018c9cc.tar.gz ghdl-3c83e47c98bc9e58ca2c231a5b24c3639018c9cc.tar.bz2 ghdl-3c83e47c98bc9e58ca2c231a5b24c3639018c9cc.zip |
Rewrite most of error and warning messages.
Diffstat (limited to 'src/vhdl/sem.adb')
-rw-r--r-- | src/vhdl/sem.adb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/vhdl/sem.adb b/src/vhdl/sem.adb index 9e4540308..dab4d9f83 100644 --- a/src/vhdl/sem.adb +++ b/src/vhdl/sem.adb @@ -2460,16 +2460,17 @@ package body Sem is pragma Assert (Callees /= Null_Iir_List); Warning_Msg_Sem (Warnid_Delayed_Checks, +El, - "can't assert that all calls in " & Disp_Node (El) - & " are pure or have not wait; " - & "will be checked at elaboration"); + "can't assert that all calls in %n" + & " are pure or have not wait;" + & " will be checked at elaboration", + +El, Cont => True); Callee := Get_Nth_Element (Callees, 0); -- FIXME: could improve this message by displaying the -- chain of calls until the first subprograms in -- unknown state. Warning_Msg_Sem (Warnid_Delayed_Checks, +Callee, - "(first such call is to " & Disp_Node (Callee) & ")"); + "(first such call is to %n)", +Callee); end if; end if; when Iir_Kind_Sensitized_Process_Statement => @@ -2478,8 +2479,8 @@ package body Sem is if Emit_Warnings then Warning_Msg_Sem (Warnid_Delayed_Checks, +El, - "can't assert that " & Disp_Node (El) - & " has not wait; will be checked at elaboration"); + "can't assert that %n has not wait; " + & "will be checked at elaboration", +El); end if; end if; when others => @@ -2629,9 +2630,8 @@ package body Sem is -- Emit a warning is a body is not necessary. if not Get_Need_Body (Package_Decl) then - Warning_Msg_Sem - (Warnid_Body, +Decl, - Disp_Node (Package_Decl) & " does not require a body"); + Warning_Msg_Sem (Warnid_Body, +Decl, + "%n does not require a body", +Package_Decl); end if; Set_Package (Decl, Package_Decl); |