aboutsummaryrefslogtreecommitdiff
path: root/sim/igen
diff options
context:
space:
mode:
Diffstat (limited to 'sim/igen')
-rw-r--r--sim/igen/ChangeLog15
-rw-r--r--sim/igen/gen-support.c7
2 files changed, 20 insertions, 2 deletions
diff --git a/sim/igen/ChangeLog b/sim/igen/ChangeLog
index 4ea778f..9a32832 100644
--- a/sim/igen/ChangeLog
+++ b/sim/igen/ChangeLog
@@ -1,3 +1,18 @@
+Wed Apr 30 17:35:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * gen-support.c (support_c_function): Remove unnecessary memset of
+ cia.
+ * gen-semantics.c (print_semantic_body): Wasn't closing
+ generated comment.
+
+Tue Apr 29 11:11:12 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * ld-insn.c (load_insn_table): Report instructions that do not
+ have at least a format and name.
+ (insn_table_find_opcode_field): Check progress is being made.
+
+ * gen-support.c (support_c_function): Report empty function body.
+
Thu Apr 24 11:43:45 1997 Andrew Cagney <cagney@b1.cygnus.com>
* ld-insn.c (insn_table_expand_opcode): Allow reserved fields to
diff --git a/sim/igen/gen-support.c b/sim/igen/gen-support.c
index d73a0de..1e4e09e 100644
--- a/sim/igen/gen-support.c
+++ b/sim/igen/gen-support.c
@@ -135,11 +135,14 @@ support_c_function(insn_table *table,
table_entry_print_cpp_line_nr (file, function);
lf_printf (file, "{\n");
lf_indent (file, +2);
- lf_print__c_code (file, function->annex);
+ if (function->annex == NULL)
+ error ("%s:%d: Function without body (or null statement)",
+ function->file_name,
+ function->line_nr);
+ lf_print__c_code (file, function->annex);
if (it_is ("internal", function->fields[insn_flags]))
{
lf_printf (file, "sim_io_error (sd, \"Internal function must longjump\\n\");\n");
- lf_printf (file, "memset (&cia, 0, sizeof cia);\n");
lf_printf (file, "return cia;\n");
}
lf_indent (file, -2);