aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/sem_stmts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-07-31 15:49:43 +0200
committerTristan Gingold <tgingold@free.fr>2016-08-01 20:23:41 +0200
commit55da78e95df865ba2e2048e6546e4fffcfe020da (patch)
tree03195d60f0affbc29224c6f955efa2b236ff7398 /src/vhdl/sem_stmts.adb
parentc9fdcc4584b8242c595beba67515d16ae0a4dd3b (diff)
downloadghdl-55da78e95df865ba2e2048e6546e4fffcfe020da.tar.gz
ghdl-55da78e95df865ba2e2048e6546e4fffcfe020da.tar.bz2
ghdl-55da78e95df865ba2e2048e6546e4fffcfe020da.zip
Rework warnings to have a uniq tag per warning.
Diffstat (limited to 'src/vhdl/sem_stmts.adb')
-rw-r--r--src/vhdl/sem_stmts.adb11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vhdl/sem_stmts.adb b/src/vhdl/sem_stmts.adb
index d0ca64a06..25c1ada95 100644
--- a/src/vhdl/sem_stmts.adb
+++ b/src/vhdl/sem_stmts.adb
@@ -557,7 +557,7 @@ package body Sem_Stmts is
if Get_Postponed_Flag (Current_Concurrent_Statement) then
Warning_Msg_Sem
("waveform may cause a delta cycle in a " &
- "postponed process", We);
+ "postponed process", We, Warnid_Delta_Cycle);
end if;
when others =>
-- Context is a subprogram.
@@ -833,7 +833,7 @@ package body Sem_Stmts is
then
Warning_Msg_Sem
("expression length does not match target length",
- Stmt);
+ Stmt, Warnid_Runtime_Error);
Set_Expression (Stmt, Build_Overflow (Expr, Target_Type));
end if;
end if;
@@ -1499,11 +1499,12 @@ package body Sem_Stmts is
then
Entity_Unit := Get_Visible_Entity_Declaration (Decl);
if Entity_Unit = Null_Iir then
- if Flags.Warn_Default_Binding
+ if Is_Warning_Enabled (Warnid_Default_Binding)
and then not Flags.Flag_Elaborate
then
- Warning_Msg_Sem ("no default binding for instantiation of "
- & Disp_Node (Decl), Stmt);
+ Warning_Msg_Sem
+ ("no default binding for instantiation of "
+ & Disp_Node (Decl), Stmt, Warnid_Default_Binding);
Explain_No_Visible_Entity (Decl);
end if;
elsif Flags.Flag_Elaborate