diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-04-30 08:39:51 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-04-30 08:39:51 +0000 |
commit | 255925e9127691fe0d498dddf253b5748baa5c66 (patch) | |
tree | 51be3ffdf23e34c14d173358c01f9d3c40e25c40 /sim/igen/gen-support.c | |
parent | 7bd5c2e6e54db66facd8672f908a533ffeef287c (diff) | |
download | fsf-binutils-gdb-255925e9127691fe0d498dddf253b5748baa5c66.zip fsf-binutils-gdb-255925e9127691fe0d498dddf253b5748baa5c66.tar.gz fsf-binutils-gdb-255925e9127691fe0d498dddf253b5748baa5c66.tar.bz2 |
Tidy code gen.
Diffstat (limited to 'sim/igen/gen-support.c')
-rw-r--r-- | sim/igen/gen-support.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |