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.
This commit is contained in:
parent
3e2196651a
commit
853f119d83
12
parse.y
12
parse.y
|
|
@ -4558,8 +4558,8 @@ module_item
|
||||||
}
|
}
|
||||||
pform_makewire(@2, $4, str_strength, $5, $2, data_type);
|
pform_makewire(@2, $4, str_strength, $5, $2, data_type);
|
||||||
if ($1) {
|
if ($1) {
|
||||||
yyerror(@2, "sorry: Attributes not supported "
|
yywarn(@2, "Attributes are not supported on net declaration "
|
||||||
"on net declaration assignments.");
|
"assignments and will be discarded.");
|
||||||
delete $1;
|
delete $1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4575,8 +4575,8 @@ module_item
|
||||||
}
|
}
|
||||||
pform_makewire(@2, 0, $4, $5, $2, data_type);
|
pform_makewire(@2, 0, $4, $5, $2, data_type);
|
||||||
if ($1) {
|
if ($1) {
|
||||||
yyerror(@2, "sorry: Attributes not supported "
|
yywarn(@2, "Attributes are not supported on net declaration "
|
||||||
"on net declaration assignments.");
|
"assignments and will be discarded.");
|
||||||
delete $1;
|
delete $1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4585,8 +4585,8 @@ module_item
|
||||||
{ real_type_t*data_type = new real_type_t(real_type_t::REAL);
|
{ real_type_t*data_type = new real_type_t(real_type_t::REAL);
|
||||||
pform_makewire(@2, 0, str_strength, $3, NetNet::WIRE, data_type);
|
pform_makewire(@2, 0, str_strength, $3, NetNet::WIRE, data_type);
|
||||||
if ($1) {
|
if ($1) {
|
||||||
yyerror(@2, "sorry: Attributes not supported "
|
yywarn(@2, "Attributes are not supported on net declaration "
|
||||||
"on net declaration assignments.");
|
"assignments and will be discarded.");
|
||||||
delete $1;
|
delete $1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue