diff --git a/cprop.cc b/cprop.cc index 4e424d2b9..cd29a1b4e 100644 --- a/cprop.cc +++ b/cprop.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: cprop.cc,v 1.55 2006/05/24 04:32:57 steve Exp $" +#ident "$Id: cprop.cc,v 1.56 2007/03/07 00:38:15 steve Exp $" #endif # include "config.h" @@ -215,7 +215,9 @@ void cprop_functor::lpm_ff(Design*des, NetFF*obj) void cprop_functor::lpm_logic(Design*des, NetLogic*obj) { +#if 0 NetScope*scope = obj->scope(); +#endif switch (obj->type()) { #if 0 @@ -948,6 +950,9 @@ void cprop(Design*des) /* * $Log: cprop.cc,v $ + * Revision 1.56 2007/03/07 00:38:15 steve + * Lint fixes. + * * Revision 1.55 2006/05/24 04:32:57 steve * Fix handling of ternary-to-bufif0 constant propagation. * diff --git a/elab_expr.cc b/elab_expr.cc index 87b128e61..ce8a905dd 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: elab_expr.cc,v 1.120 2007/03/06 05:22:49 steve Exp $" +#ident "$Id: elab_expr.cc,v 1.121 2007/03/07 00:38:15 steve Exp $" #endif # include "config.h" @@ -695,7 +695,7 @@ unsigned PEIdent::test_width(Design*des, NetScope*scope, const NetExpr*ex1, *ex2; - NetScope*found_in = symbol_search(des, scope, path_, + symbol_search(des, scope, path_, net, par, eve, ex1, ex2); @@ -706,7 +706,7 @@ unsigned PEIdent::test_width(Design*des, NetScope*scope, break; case SEL_PART: { long msb, lsb; - bool flag = calculate_parts_(des, scope, msb, lsb); + calculate_parts_(des, scope, msb, lsb); use_width = 1 + ((msb>lsb)? (msb-lsb) : (lsb-msb)); break; } @@ -1608,6 +1608,9 @@ NetExpr* PEUnary::elaborate_expr(Design*des, NetScope*scope, /* * $Log: elab_expr.cc,v $ + * Revision 1.121 2007/03/07 00:38:15 steve + * Lint fixes. + * * Revision 1.120 2007/03/06 05:22:49 steve * Support signed function return values. * diff --git a/eval.cc b/eval.cc index 3441410e1..1e9f15987 100644 --- a/eval.cc +++ b/eval.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: eval.cc,v 1.44 2007/01/16 05:44:15 steve Exp $" +#ident "$Id: eval.cc,v 1.45 2007/03/07 00:38:15 steve Exp $" #endif # include "config.h" @@ -185,7 +185,7 @@ verinum* PEIdent::eval_const(const Design*des, NetScope*scope) const return new verinum(scope->genvar_tmp_val); } - NetScope*found_in = symbol_search(des, scope, path_, + symbol_search(des, scope, path_, net, expr, eve); if (expr == 0) @@ -275,6 +275,9 @@ verinum* PEUnary::eval_const(const Design*des, NetScope*scope) const /* * $Log: eval.cc,v $ + * Revision 1.45 2007/03/07 00:38:15 steve + * Lint fixes. + * * Revision 1.44 2007/01/16 05:44:15 steve * Major rework of array handling. Memories are replaced with the * more general concept of arrays. The NetMemory and NetEMemory diff --git a/pform_dump.cc b/pform_dump.cc index 1539069b0..969a7468d 100644 --- a/pform_dump.cc +++ b/pform_dump.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: pform_dump.cc,v 1.96 2007/03/05 05:59:10 steve Exp $" +#ident "$Id: pform_dump.cc,v 1.97 2007/03/07 00:38:15 steve Exp $" #endif # include "config.h" @@ -629,6 +629,9 @@ void PFunction::dump(ostream&out, unsigned ind) const case PTF_REG: out << "reg "; break; + case PTF_REG_S: + out << "reg_s "; + break; case PTF_INTEGER: out << "integer "; break; @@ -1029,6 +1032,9 @@ void PUdp::dump(ostream&out) const /* * $Log: pform_dump.cc,v $ + * Revision 1.97 2007/03/07 00:38:15 steve + * Lint fixes. + * * Revision 1.96 2007/03/05 05:59:10 steve * Handle processes within generate loops. * diff --git a/vpi/sys_scanf.c b/vpi/sys_scanf.c index 00eb5812f..26c8b3e2f 100644 --- a/vpi/sys_scanf.c +++ b/vpi/sys_scanf.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: sys_scanf.c,v 1.4 2006/10/30 22:45:37 steve Exp $" +#ident "$Id: sys_scanf.c,v 1.5 2007/03/07 00:38:16 steve Exp $" #endif # include "vpi_user.h" @@ -116,7 +116,7 @@ static double float_string(struct byte_source*src) if (ch == '-' || ch == '+') { str = realloc(str, len+2); str[len++] = ch; - ch - byte_getc(src); + ch = byte_getc(src); } while (isdigit(ch)) { diff --git a/vvp/vpi_priv.cc b/vvp/vpi_priv.cc index 9016d3ad1..5e02eb048 100644 --- a/vvp/vpi_priv.cc +++ b/vvp/vpi_priv.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: vpi_priv.cc,v 1.51 2007/01/31 22:28:55 steve Exp $" +#ident "$Id: vpi_priv.cc,v 1.52 2007/03/07 00:38:16 steve Exp $" #endif # include "vpi_priv.h" @@ -416,7 +416,7 @@ void vpip_vec4_get_value(const vvp_vector4_t&word_val, unsigned width, if (signed_flag && word_val.size() > 0) pad = word_val.value(word_val.size()-1); - for (long idx = 0 ; idx < 8*sizeof(val) ; idx += 1) { + for (unsigned idx = 0 ; idx < 8*sizeof(val) ; idx += 1) { vvp_bit4_t val4 = pad; if (idx < word_val.size()) val4 = word_val.value(idx); @@ -848,6 +848,9 @@ extern "C" void vpi_control(PLI_INT32 operation, ...) /* * $Log: vpi_priv.cc,v $ + * Revision 1.52 2007/03/07 00:38:16 steve + * Lint fixes. + * * Revision 1.51 2007/01/31 22:28:55 steve * Fix missing check for thread bits width in ADDI * diff --git a/vvp/vvp_net.cc b/vvp/vvp_net.cc index 0d5d6a8e6..b1ad66066 100644 --- a/vvp/vvp_net.cc +++ b/vvp/vvp_net.cc @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -#ident "$Id: vvp_net.cc,v 1.59 2007/03/02 06:13:22 steve Exp $" +#ident "$Id: vvp_net.cc,v 1.60 2007/03/07 00:38:16 steve Exp $" # include "config.h" # include "vvp_net.h" @@ -637,7 +637,7 @@ bool vector4_to_value(const vvp_vector4_t&vec, double&val, bool signed_flag) double res = 0.0; if (signed_flag) { vvp_bit4_t carry = BIT4_1; - for (int idx = 0 ; idx < vec.size() ; idx += 1) { + for (unsigned idx = 0 ; idx < vec.size() ; idx += 1) { vvp_bit4_t a = ~vec.value(idx); vvp_bit4_t x = add_with_carry(a, BIT4_0, carry); switch (x) { @@ -652,7 +652,7 @@ bool vector4_to_value(const vvp_vector4_t&vec, double&val, bool signed_flag) } res *= -1.0; } else { - for (int idx = 0 ; idx < vec.size() ; idx += 1) { + for (unsigned idx = 0 ; idx < vec.size() ; idx += 1) { switch (vec.value(idx)) { case BIT4_0: break; @@ -2290,6 +2290,9 @@ vvp_bit4_t compare_gtge_signed(const vvp_vector4_t&a, /* * $Log: vvp_net.cc,v $ + * Revision 1.60 2007/03/07 00:38:16 steve + * Lint fixes. + * * Revision 1.59 2007/03/02 06:13:22 steve * Add support for edge sensitive spec paths. *