From 9f36b77f43db9975865f01f5bda68a824d24fcfb Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 17 Nov 2006 20:35:46 +0000 Subject: 2006-11-17 Frank Ch. Eigler * tapsets.cxx (d_v_e_c_v::visit_target_symbol): Restore lost exception-saving functionality that improves error messages for incorrect $target expressions. (translate_components): Systematize error messages somewhat. * translate.cxx (emit_function, emit_probe): Clarify "array locals" error message. 2006-11-17 Frank Ch. Eigler * semko/thirtysix.stp, transko/three.stp: New tests. --- translate.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index 1a1ae09e..d427fdba 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1169,7 +1169,8 @@ c_unparser::emit_function (functiondecl* v) for (unsigned i=0; ilocals.size(); i++) { if (v->locals[i]->index_types.size() > 0) // array? - throw semantic_error ("array locals not supported", v->locals[i]->tok); + throw semantic_error ("array locals not supported, missing global declaration?", + v->locals[i]->tok); o->newline() << getvar (v->locals[i]).init(); } @@ -1274,7 +1275,8 @@ c_unparser::emit_probe (derived_probe* v) for (unsigned j=0; jlocals.size(); j++) { if (v->locals[j]->index_types.size() > 0) // array? - throw semantic_error ("array locals not supported", v->tok); + throw semantic_error ("array locals not supported, missing global declaration?", + v->locals[j]->tok); else if (v->locals[j]->type == pe_long) o->newline() << "l->" << c_varname (v->locals[j]->name) << " = 0;"; -- cgit