From 51ef5419696cbaa97eb43ee6038d0e842b53b553 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 22 Feb 2012 10:20:49 -0800 Subject: [PATCH] Fix compile on cygwin and fix a few compile warnings. This patch fixes a few compile warnings and adds the new packed routines to the ivl.def file so that this links correctly on cygwin. --- elab_expr.cc | 4 ++-- elab_lval.cc | 4 ++-- ivl.def | 3 +++ pform_struct_type.cc | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/elab_expr.cc b/elab_expr.cc index 2de3748e5..980446132 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2012 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -1420,7 +1420,7 @@ static NetExpr* check_for_enum_methods(const LineInfo*li, } static NetExpr* check_for_struct_members(const LineInfo*li, - Design*des, NetScope*scope, + Design*des, NetScope*, NetNet*net, perm_string method_name) { netstruct_t*type = net->struct_type(); diff --git a/elab_lval.cc b/elab_lval.cc index 6376c05e1..4e5934841 100644 --- a/elab_lval.cc +++ b/elab_lval.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 2000-2012 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -622,7 +622,7 @@ bool PEIdent::elaborate_lval_net_idx_(Design*des, } bool PEIdent::elaborate_lval_net_packed_member_(Design*des, - NetScope*scope, + NetScope*, NetAssign_*lv, const perm_string&member_name) const { diff --git a/ivl.def b/ivl.def index 4e57899c5..603c116e8 100644 --- a/ivl.def +++ b/ivl.def @@ -230,6 +230,9 @@ ivl_signal_msb ivl_signal_name ivl_signal_nex ivl_signal_npath +ivl_signal_packed_dimensions +ivl_signal_packed_lsb +ivl_signal_packed_msb ivl_signal_path ivl_signal_port ivl_signal_scope diff --git a/pform_struct_type.cc b/pform_struct_type.cc index 1e07db36d..1fe44bbe8 100644 --- a/pform_struct_type.cc +++ b/pform_struct_type.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Stephen Williams (steve@icarus.com) + * Copyright (c) 2011-2012 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -79,7 +79,7 @@ static void pform_makewire(const struct vlltype&li, struct_type_t*struct_type, NetNet::PortType ptype, perm_string name, - list*attr) + list*) { ivl_variable_type_t base_type = figure_struct_base_type(struct_type);