aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-11 18:38:54 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-11 18:38:54 +0100
commit4c9651dfbb4aeb4bd22b1b6eb5436119f599f8e4 (patch)
treeac5c09e8fcd4276c64f0690944d0bf6d05ba5a15 /src
parent17035deb83dd13aa9c9fc09e28c70b983aeeca59 (diff)
downloadghdl-4c9651dfbb4aeb4bd22b1b6eb5436119f599f8e4.tar.gz
ghdl-4c9651dfbb4aeb4bd22b1b6eb5436119f599f8e4.tar.bz2
ghdl-4c9651dfbb4aeb4bd22b1b6eb5436119f599f8e4.zip
synth: improve error message.
Diffstat (limited to 'src')
-rw-r--r--src/synth/synth-oper.adb2
-rw-r--r--src/synth/synth-stmts.adb2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/synth/synth-oper.adb b/src/synth/synth-oper.adb
index 1a3a10bf5..2934b4fd0 100644
--- a/src/synth/synth-oper.adb
+++ b/src/synth/synth-oper.adb
@@ -1252,7 +1252,7 @@ package body Synth.Oper is
when others =>
Error_Msg_Synth (+Expr, "synth_dyadic_operation: unhandled "
& Iir_Predefined_Functions'Image (Def));
- raise Internal_Error;
+ return null;
end case;
end Synth_Dyadic_Operation;
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb
index 59f14a990..c962998a7 100644
--- a/src/synth/synth-stmts.adb
+++ b/src/synth/synth-stmts.adb
@@ -2625,7 +2625,7 @@ package body Synth.Stmts is
Lib := Get_Library (Get_Design_File (Unit));
if Get_Identifier (Lib) = Std_Names.Name_Ieee then
Error_Msg_Synth
- (+Expr, "unhandled call to an ieee function");
+ (+Expr, "unhandled call to ieee function %i", +Imp);
Set_Error (Syn_Inst);
return null;
end if;