From d53014a07f42e18d2e6baba50d271bd443c85d66 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Mon, 18 Aug 2008 15:36:11 +0100 Subject: [PATCH] Fix leading comma it expression only has "others" part Stop syntax errors caused by things like this: (, others => '1') --- tgt-vhdl/vhdl_syntax.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vhdl/vhdl_syntax.cc b/tgt-vhdl/vhdl_syntax.cc index 6bb246e4d..e24a40cfb 100644 --- a/tgt-vhdl/vhdl_syntax.cc +++ b/tgt-vhdl/vhdl_syntax.cc @@ -768,7 +768,7 @@ void vhdl_bit_spec_expr::emit(std::ostream &of, int level) const } if (others_) { - of << ", others => "; + of << (bits_.empty() ? "" : ", ") << "others => "; others_->emit(of, level); }