diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 097883115..2db5a0ab9 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -1246,9 +1246,9 @@ private: if ((portp->isOutput() || portp->isInout()) && pinp->width() != portp->width()) { pinp->v3error("Unsupported: Function output argument '"<prettyName()<<"'" - <<" requires "<width() + <<" requires "<width() <<" bits, but connection's "<prettyTypeName() - <<" generates "<width()<<" bits."); + <<" generates "<width()<<" bits."); // otherwise would need some mess to force both sides to proper size // (get an ASSIGN with EXTEND on the lhs instead of rhs) } diff --git a/test_regress/Makefile_obj b/test_regress/Makefile_obj index e018cf548..08a4d66ed 100644 --- a/test_regress/Makefile_obj +++ b/test_regress/Makefile_obj @@ -42,7 +42,11 @@ ifeq ($(VM_SP_OR_SC),1) LIBS += $(SC_LIBS) endif -#Default compile, using normal make rules +#Default compile, pick up OBJCACHE +%.o: %.cpp + $(OBJCACHE) $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $< + +#Default link, using normal make rules #$(VM_PREFIX): $(VK_GLOBAL_OBJS) $(VK_OBJS) # $(LINK) $(LDFLAGS) -g $^ $(LOADLIBES) $(LDLIBS) -o $@ $(LIBS) 2>&1 | c++filt diff --git a/test_regress/t/t_func_wide_out_bad.pl b/test_regress/t/t_func_wide_out_bad.pl index b5d361523..195a6f8d8 100755 --- a/test_regress/t/t_func_wide_out_bad.pl +++ b/test_regress/t/t_func_wide_out_bad.pl @@ -11,7 +11,7 @@ compile ( v_flags2 => ["--lint-only"], fails=>1, expect=> -q{%Error: t/t_func_wide_out_bad.v:\d+: Unsupported: Function output argument 'data' requires 4350 bits, but connection's VARREF 'msg' generates 4352 bits. +q{%Error: t/t_func_wide_out_bad.v:\d+: Unsupported: Function output argument 'data' requires 4352 bits, but connection's VARREF 'msg' generates 4350 bits. %Error: Exiting due to.*}, );