aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/synth-stmts.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-03-17 20:16:24 +0100
committerTristan Gingold <tgingold@free.fr>2021-03-17 20:16:24 +0100
commitb38003fe6a2a12af7f2e13b4ac8c28245a48575e (patch)
treef147ddd5dce3aba042dde4099439b2e27be2764e /src/synth/synth-stmts.adb
parent4be07f298050ec2de183be699ad7e9650b5b5b9c (diff)
downloadghdl-b38003fe6a2a12af7f2e13b4ac8c28245a48575e.tar.gz
ghdl-b38003fe6a2a12af7f2e13b4ac8c28245a48575e.tar.bz2
ghdl-b38003fe6a2a12af7f2e13b4ac8c28245a48575e.zip
synth: handle loc attribute (for ports). Fix #1682
Diffstat (limited to 'src/synth/synth-stmts.adb')
-rw-r--r--src/synth/synth-stmts.adb3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synth/synth-stmts.adb b/src/synth/synth-stmts.adb
index a19ca987a..8ec6fdf33 100644
--- a/src/synth/synth-stmts.adb
+++ b/src/synth/synth-stmts.adb
@@ -3700,6 +3700,9 @@ package body Synth.Stmts is
Synth_Attribute_Formal (Syn_Inst, Val, Id_Anyconst);
when Name_Anyseq =>
Synth_Attribute_Formal (Syn_Inst, Val, Id_Anyseq);
+ when Name_Loc =>
+ -- Applies to nets/ports.
+ null;
when others =>
Warning_Msg_Synth (+Spec, "unhandled attribute %i", (1 => +Id));
end case;