aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/errorout.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2016-08-02 06:02:07 +0200
committerTristan Gingold <tgingold@free.fr>2016-08-02 08:01:36 +0200
commitee0e651d9b3946910d513e6a670453e25e5f014d (patch)
tree6b8df5b5630fa7c7cd78583663eac88c1d88f387 /src/vhdl/errorout.ads
parentcdb323b1dbfccbcff5c63804ff73e6e86e4d05e8 (diff)
downloadghdl-ee0e651d9b3946910d513e6a670453e25e5f014d.tar.gz
ghdl-ee0e651d9b3946910d513e6a670453e25e5f014d.tar.bz2
ghdl-ee0e651d9b3946910d513e6a670453e25e5f014d.zip
Rewrite error messages.
Diffstat (limited to 'src/vhdl/errorout.ads')
-rw-r--r--src/vhdl/errorout.ads17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/vhdl/errorout.ads b/src/vhdl/errorout.ads
index 16f26df22..e1beb156b 100644
--- a/src/vhdl/errorout.ads
+++ b/src/vhdl/errorout.ads
@@ -123,6 +123,8 @@ package Errorout is
-- %c: character
-- %t: token
-- %l: location
+ -- %n: node name
+ -- TODO: %m: mode, %y: type of, %s: disp_subprg
function "+" (V : Iir) return Earg_Type;
function "+" (V : Location_Type) return Earg_Type;
function "+" (V : Name_Id) return Earg_Type;
@@ -131,6 +133,7 @@ package Errorout is
-- Convert location.
function "+" (L : Iir) return Location_Type;
+ function "+" (L : PSL_Node) return Location_Type;
-- Pass that detected the error.
type Report_Origin is
@@ -179,12 +182,18 @@ package Errorout is
procedure Warning_Msg_Sem
(Id : Msgid_Warnings; Loc : Location_Type; Msg: String);
- procedure Error_Msg_Sem (Msg: String; Loc: Iir);
- procedure Error_Msg_Sem (Msg: String; Loc: PSL_Node);
- procedure Error_Msg_Sem (Msg: String; Loc: Location_Type);
+ procedure Error_Msg_Sem (Loc: Location_Type;
+ Msg: String;
+ Args : Earg_Arr := No_Eargs;
+ Cont : Boolean := False);
+ procedure Error_Msg_Sem
+ (Loc: Location_Type; Msg: String; Arg1 : Earg_Type);
+ procedure Error_Msg_Sem_1 (Msg: String; Loc : PSL_Node);
-- Like Error_Msg_Sem, but a warning if -frelaxed or --std=93c.
- procedure Error_Msg_Sem_Relaxed (Loc : Iir; Msg : String);
+ procedure Error_Msg_Sem_Relaxed (Loc : Iir;
+ Msg : String;
+ Args : Earg_Arr := No_Eargs);
-- Disp a message during elaboration (or configuration).
procedure Error_Msg_Elab (Msg: String);