From 853f119d83e46d628a970d97a2f66c9d8b992ffc Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Wed, 5 Aug 2015 18:22:25 +0100 Subject: [PATCH] Fix for br989 - unsupported attributes are not fatal. The compiler was emitting a "sorry" message and aborting compilation when it encountered attributes on a wire declaration/assignment. Change this to a warning, as most attributes are ignored anyway. --- parse.y | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/parse.y b/parse.y index bc866fea6..2521eb1cb 100644 --- a/parse.y +++ b/parse.y @@ -4558,8 +4558,8 @@ module_item } pform_makewire(@2, $4, str_strength, $5, $2, data_type); if ($1) { - yyerror(@2, "sorry: Attributes not supported " - "on net declaration assignments."); + yywarn(@2, "Attributes are not supported on net declaration " + "assignments and will be discarded."); delete $1; } } @@ -4575,8 +4575,8 @@ module_item } pform_makewire(@2, 0, $4, $5, $2, data_type); if ($1) { - yyerror(@2, "sorry: Attributes not supported " - "on net declaration assignments."); + yywarn(@2, "Attributes are not supported on net declaration " + "assignments and will be discarded."); delete $1; } } @@ -4585,8 +4585,8 @@ module_item { real_type_t*data_type = new real_type_t(real_type_t::REAL); pform_makewire(@2, 0, str_strength, $3, NetNet::WIRE, data_type); if ($1) { - yyerror(@2, "sorry: Attributes not supported " - "on net declaration assignments."); + yywarn(@2, "Attributes are not supported on net declaration " + "assignments and will be discarded."); delete $1; } }